Merge lp:~factorlibre/openerp-connector-magento/openerp-connector-magento-php54-none-values into lp:~openerp-connector-core-editors/openerp-connector-magento/7.0
Proposed by
Alberto Garcia (Factor Libre)
Status: | Needs review |
---|---|
Proposed branch: | lp:~factorlibre/openerp-connector-magento/openerp-connector-magento-php54-none-values |
Merge into: | lp:~openerp-connector-core-editors/openerp-connector-magento/7.0 |
Diff against target: |
20 lines (+9/-0) 1 file modified
magentoerpconnect/unit/backend_adapter.py (+9/-0) |
To merge this branch: | bzr merge lp:~factorlibre/openerp-connector-magento/openerp-connector-magento-php54-none-values |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guewen Baconnier @ Camptocamp | Needs Resubmitting | ||
Review via email: mp+224970@code.launchpad.net |
To post a comment you must log in.
Unmerged revisions
- 1008. By Alberto Garcia (Factor Libre)
-
Fix
- 1007. By Alberto Garcia (Factor Libre)
-
Fix api call
- 1006. By Alberto Garcia (Factor Libre)
-
Delete None parameters for connector when Magento use php => 5.4
Hi,
Thanks for this patch.
What you want is to remove trailing None values, but you remove all None values.
Example, if you have: [7, None, 4, None], you patch will give [7, 4].
Here is want you want:
if isinstance( arguments, list):
arguments. pop()
while arguments and arguments[-1] is None:
Thanks to run the unittests and fix them accordingly. The test data will certainly need to be adapted.