~magentoerpconnect-core-editors/magentoerpconnect/trunk_version

« back to all changes in this revision

Viewing changes to magentoerpconnect/sale.py

  • Committer: Yannick Vaucher
  • Date: 2013-03-01 12:39:41 UTC
  • mto: This revision was merged to the branch mainline in revision 671.
  • Revision ID: yannick.vaucher@camptocamp.com-20130301123941-8caryk087nbldpk6
[REM] magentoerpconnect - remove the ORiginal way to simulate OR operator

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        :param filters: filter terms for partner search
67
67
        :param delta: size of groups to import
68
68
        """
69
 
        # make one call per element in the list of filters as OR
70
 
        # is not correctly implemented in magento api, yes that's ORible
71
 
        customer_ids = []
72
 
        for operand in filters:
73
 
            customer_ids += connection.call('ol_customer.search', [operand])
74
 
 
75
 
        customer_ids = list(set(customer_ids))
 
69
        customer_ids = connection.call('ol_customer.search', filters)
76
70
 
77
71
        data = []
78
72
        for i in xrange(0, len(customer_ids), delta):