Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def decline_contact_invitation(self, pending_contact, block=True):
def callback(memberships):
pending_contact._set_memberships(memberships)
self.emit('contact-rejected', pending_contact)
di = scenario.DeclineInviteScenario(self._sharing,
(callback,),
(self.__common_errback,))
di.account = pending_contact.account
di.network = pending_contact.network_id
di.memberships = pending_contact.memberships
di.block = block
di()
def decline_contact_invitation(self, pending_contact, block=True,
done_cb=None, failed_cb=None):
def callback(memberships):
pending_contact._set_memberships(memberships)
self.__common_callback('contact-rejected', done_cb, pending_contact)
di = scenario.DeclineInviteScenario(self._sharing,
(callback,),
(self.__common_errback, failed_cb))
di.account = pending_contact.account
di.network = pending_contact.network_id
di.memberships = pending_contact.memberships
di.block = block
di()
def decline_contact_invitation(self, pending_contact, block=True,
done_cb=None, failed_cb=None):
def callback(memberships):
pending_contact._set_memberships(memberships)
self.__common_callback('contact-rejected', done_cb, pending_contact)
di = scenario.DeclineInviteScenario(self._sharing,
(callback,),
(self.__common_errback, failed_cb))
di.account = pending_contact.account
di.network = pending_contact.network_id
di.memberships = pending_contact.memberships
di.block = block
di()
def decline_contact_invitation(self, pending_contact, block=True,
done_cb=None, failed_cb=None):
def callback(memberships):
pending_contact._set_memberships(memberships)
self.__common_callback('contact-rejected', done_cb, pending_contact)
di = scenario.DeclineInviteScenario(self._sharing,
(callback,),
(self.__common_errback, failed_cb))
di.account = pending_contact.account
di.network = pending_contact.network_id
di.memberships = pending_contact.memberships
di.block = block
di()