コード例 #1
0
 def getDeleted(self, sObjectType, start, end):
     res = BaseClient.getDeleted(self, sObjectType, start, end)
     res = res[_tPartnerNS.deletedRecords, ]
     if not isinstance(res, (tuple, list)):
         res = [res]
     data = list()
     for r in res:
         d = dict(id=str(r[_tPartnerNS.id]),
                  deletedDate=marshall('datetime',
                                       'deletedDate',
                                       r,
                                       ns=_tPartnerNS))
         data.append(d)
     return data
コード例 #2
0
 def marshall(self, fieldname, xml):
     if fieldname in self.fields.keys():
         field = self.fields[fieldname]
     else:
         return marshall(DEFAULT_FIELD_TYPE, fieldname, xml)
     return field.marshall(xml)
コード例 #3
0
 def marshall(self, xml):
     return marshall(self.type, self.name, xml)