Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(37) | Call(37) | Derive(0) | Import(0)
src/c/o/CollabQ-HEAD/common/im.py CollabQ(Download)
def channel_join(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to join a channel, please SIGN IN")
def channel_part(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to leave a channel, please SIGN IN")
def actor_add_contact(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to post, please SIGN IN")
def actor_remove_contact(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to post, please SIGN IN")
def sign_in(self, from_jid, nick, password): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if jid_ref: raise exception.ValidationError( "You are already signed in, please SIGN OUT first")
src/j/a/jaikuenginepatch-HEAD/common/im.py jaikuenginepatch(Download)
def channel_join(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to join a channel, please SIGN IN")
def channel_part(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to leave a channel, please SIGN IN")
def actor_add_contact(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to post, please SIGN IN")
def actor_remove_contact(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to post, please SIGN IN")
def sign_in(self, from_jid, nick, password): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if jid_ref: raise exception.ValidationError( "You are already signed in, please SIGN OUT first")
src/j/a/JaikuEngine-HEAD/common/im.py JaikuEngine(Download)
def channel_join(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to join a channel, please SIGN IN")
def channel_part(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to leave a channel, please SIGN IN")
def actor_add_contact(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to post, please SIGN IN")
def actor_remove_contact(self, from_jid, nick): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if not jid_ref: raise exception.ValidationError( "You must be signed in to post, please SIGN IN")
def sign_in(self, from_jid, nick, password): jid_ref = api.actor_lookup_im(api.ROOT, from_jid.base()) if jid_ref: raise exception.ValidationError( "You are already signed in, please SIGN OUT first")