def safe_update(self): self.emailAddresses[0]['address'] in self.__capsule_party[ 'emailAddresses'] and self.emailAddresses.pop(0) self.__exclude_custom_fields() return CRMConnector.update_party(self.__capsule_party['id'], {'party': self.as_dict()})
def update(self): self.__capsule_party and self.get() return CRMConnector.update_party(self.__capsule_party['id'], {'party': self.as_dict()})