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
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)
def marshall(self, xml): return marshall(self.type, self.name, xml)