예제 #1
0
 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()})
예제 #2
0
 def update(self):
     self.__capsule_party and self.get()
     return CRMConnector.update_party(self.__capsule_party['id'],
                                      {'party': self.as_dict()})