Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def add_contact_to_group(self, group, contact):
def callback():
contact._add_group_ownership(group)
self.emit('group-contact-added', group, contact)
ac = scenario.GroupContactAddScenario(self._ab,
(callback,),
(self.__common_errback,))
ac.group_guid = group.id
ac.contact_guid = contact.id
ac()
def add_contact_to_group(self, group, contact, done_cb=None, failed_cb=None):
def callback():
contact._add_group_ownership(group)
self.__common_callback('group-contact-added', done_cb, group, contact)
ac = scenario.GroupContactAddScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
ac.group_guid = group.id
ac.contact_guid = contact.id
ac()
def add_contact_to_group(self, group, contact, done_cb=None, failed_cb=None):
def callback():
contact._add_group_ownership(group)
self.__common_callback('group-contact-added', done_cb, group, contact)
ac = scenario.GroupContactAddScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
ac.group_guid = group.id
ac.contact_guid = contact.id
ac()
def add_contact_to_group(self, group, contact, done_cb=None, failed_cb=None):
def callback():
contact._add_group_ownership(group)
self.__common_callback('group-contact-added', done_cb, group, contact)
ac = scenario.GroupContactAddScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
ac.group_guid = group.id
ac.contact_guid = contact.id
ac()