Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def delete_contact_from_group(self, group, contact):
def callback():
contact._delete_group_ownership(group)
self.emit('group-contact-deleted', group, contact)
dc = scenario.GroupContactDeleteScenario(self._ab,
(callback,),
(self.__common_errback,))
dc.group_guid = group.id
dc.contact_guid = contact.id
dc()
# End of public API
def delete_contact_from_group(self, group, contact,
done_cb=None, failed_cb=None):
def callback():
contact._delete_group_ownership(group)
self.__common_callback('group-contact-deleted', done_cb, group, contact)
dc = scenario.GroupContactDeleteScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
dc.group_guid = group.id
dc.contact_guid = contact.id
dc()
# End of public API
def delete_contact_from_group(self, group, contact,
done_cb=None, failed_cb=None):
def callback():
contact._delete_group_ownership(group)
self.__common_callback('group-contact-deleted', done_cb, group, contact)
dc = scenario.GroupContactDeleteScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
dc.group_guid = group.id
dc.contact_guid = contact.id
dc()
def delete_contact_from_group(self, group, contact,
done_cb=None, failed_cb=None):
def callback():
contact._delete_group_ownership(group)
self.__common_callback('group-contact-deleted', done_cb, group, contact)
dc = scenario.GroupContactDeleteScenario(self._ab,
(callback,),
(self.__common_errback, failed_cb))
dc.group_guid = group.id
dc.contact_guid = contact.id
dc()
# End of public API