Module Expr Str Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad For NameStore AttributeLoad Call NameLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareEq SubscriptLoad NameLoad Index Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad NameLoad Index Num orelse If CompareEq Call NameLoad NameLoad Num body Return NameLoad orelse Raise Call NameLoad BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore CompareGt Call NameLoad Call NameLoad Lambda arguments args NameParam defaults BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str NameLoad CompareIn Call AttributeLoad NameLoad attr Str TupleLoad Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn NameLoad Call AttributeLoad NameLoad attr CompareIn Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str body Assign SubscriptStore NameLoad Index Str Str If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call NameLoad Lambda arguments args NameParam defaults CompareEq SubscriptLoad NameLoad Index Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad orelse If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Dict Str Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad TupleLoad body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Lambda arguments args NameParam defaults BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str Str CompareNotIn NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareNotEq Call AttributeLoad NameLoad attr Str NameLoad body Return For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListLoad Assign SubscriptStore NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str For NameStore Call AttributeLoad NameLoad attr Str ListLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str ListLoad orelse Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr Str body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign SubscriptStore NameLoad Index Str Str orelse Pass orelse If CompareEq Call AttributeLoad NameLoad attr Str body If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad orelse Pass orelse If CompareEq Call AttributeLoad NameLoad attr NameLoad body If NameLoad body AugAssignAdd SubscriptStore NameLoad Index Str Num orelse If CompareEq Call AttributeLoad NameLoad attr Str body If NameLoad body AugAssignSub SubscriptStore NameLoad Index Str Num orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareEq NameLoad Str CompareIs NameLoad NameLoad body Return Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareEq SubscriptLoad NameLoad Index Str NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore BoolOpAnd CompareIn NameLoad ListLoad Str Str NameLoad CompareIsNot NameLoad NameLoad CompareEq Call NameLoad NameLoad Num If UnaryOpNot NameLoad body Return Assign NameStore SubscriptLoad NameLoad Index Num TryExcept body For NameStore AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad If NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad NameLoad If NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword TupleLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A 
hermes.chatroom
~~~~~~~~~~~~~~~

This module contains the base chatroom functionality for Hermes.
 N/A re N/A xmpp N/A logging N/A logger N/A N/A logging getLogger __name__ Chatroom N/A object N/A N/A Base chatroom class. Implements default broadcast logic and handles basic chatroom commands. N/A command_patterns N/A __init__ N/A N/A self name params N/A N/A N/A N/A self command_patterns N/A N/A pattern N/A N/A type self command_patterns N/A N/A N/A N/A N/A self command_patterns append N/A N/A N/A re compile N/A pattern N/A 0 N/A pattern N/A 1 N/A N/A self name name N/A N/A self params params N/A N/A self jid N/A N/A N/A xmpp protocol JID N/A N/A self params N/A JID N/A connect N/A N/A self N/A N/A N/A Connect to the chatroom's server, sets up handlers, invites members as needed. N/A m N/A N/A self params N/A MEMBERS N/A N/A N/A m N/A ONLINE 0 N/A N/A N/A m setdefault STATUS INVITED N/A N/A self client N/A N/A xmpp Client N/A N/A N/A self jid getDomain debug N/A N/A conn N/A N/A N/A self client connect server N/A N/A self params N/A SERVER N/A N/A conn N/A N/A N/A Exception could not connect to server N/A auth N/A N/A N/A self client auth N/A N/A N/A self jid getNode N/A N/A self params N/A PASSWORD N/A N/A auth N/A N/A N/A Exception could not authenticate as chat server N/A N/A N/A N/A self client RegisterHandler message N/A self on_message N/A N/A N/A N/A self client RegisterHandler presence N/A self on_presence N/A N/A N/A N/A self client sendInitPresence requestRoster 0 N/A roster N/A N/A N/A self client getRoster N/A m N/A N/A self params N/A MEMBERS N/A N/A N/A N/A self invite_user m roster roster N/A get_member N/A N/A self jid default N/A None N/A N/A Get a chatroom member by JID N/A member N/A filter N/A N/A N/A m N/A N/A N/A m N/A JID jid N/A N/A self params N/A MEMBERS N/A N/A N/A len member 1 N/A N/A N/A member N/A 0 N/A N/A N/A N/A len member 0 N/A N/A default N/A N/A N/A Exception N/A Multple members have the same JID of [%s] N/A jid N/A is_member N/A N/A self m N/A N/A N/A Check if a user is a member of the chatroom N/A N/A m N/A N/A False N/A N/A N/A isinstance m basestring N/A N/A jid m N/A N/A jid N/A m N/A JID N/A is_member N/A N/A len N/A filter N/A N/A N/A m N/A N/A N/A N/A m N/A JID jid N/A N/A N/A m get STATUS N/A ACTIVE INVITED N/A N/A self params N/A MEMBERS 0 N/A is_member N/A invite_user N/A N/A self new_member inviter roster N/A None None N/A N/A Invites a new member to the chatroom N/A roster N/A roster N/A N/A N/A self client getRoster N/A jid N/A new_member N/A JID N/A N/A N/A logger info N/A roster %s %s N/A jid N/A N/A roster getSubscription jid N/A N/A N/A jid N/A N/A roster keys N/A N/A N/A roster getSubscription jid N/A both to N/A N/A N/A new_member N/A STATUS ACTIVE N/A inviter N/A N/A N/A N/A self send_message N/A %s is already a member N/A jid inviter N/A N/A N/A new_member N/A STATUS INVITED N/A N/A N/A self broadcast N/A inviting %s to the room N/A jid N/A subscribe_presence N/A N/A N/A xmpp dispatcher Presence to jid typ subscribe N/A N/A NICK N/A self params N/A N/A N/A N/A subscribe_presence addChild name nick namespace N/A N/A xmpp protocol NS_NICK payload N/A N/A self params N/A NICK N/A N/A N/A N/A self client send subscribe_presence N/A N/A N/A N/A self is_member new_member N/A N/A N/A N/A new_member setdefault NICK N/A N/A N/A jid split @ N/A 0 N/A N/A N/A N/A N/A self params N/A MEMBERS append new_member N/A kick_user N/A N/A self jid N/A N/A N/A Kicks a member from the chatroom. Kicked user will receive no more messages. N/A member N/A filter N/A N/A N/A m N/A N/A N/A m N/A JID jid N/A N/A self params N/A MEMBERS N/A N/A N/A member N/A STATUS KICKED N/A N/A N/A self send_message N/A You have been kicked from %s N/A N/A self name member N/A N/A N/A N/A self client sendPresence jid N/A member N/A JID typ unsubscribed N/A N/A N/A N/A self client sendPresence jid N/A member N/A JID typ unsubscribe N/A N/A N/A self broadcast N/A kicking %s from the room N/A jid N/A send_message N/A N/A self body to quiet html_body N/A False None N/A N/A Send a message to a single member N/A N/A N/A to get MUTED N/A N/A N/A N/A N/A to N/A QUEUED_MESSAGES append body N/A N/A N/A quiet N/A N/A N/A N/A logger info N/A message on %s to %s: %s N/A N/A self name N/A to N/A JID body N/A message N/A N/A N/A xmpp protocol Message to N/A to N/A JID body body typ chat N/A html_body N/A N/A html N/A N/A xmpp Node html N/A xmlns http://jabber.org/protocol/xhtml-im N/A N/A N/A html addChild node N/A N/A N/A xmpp simplexml XML2Node N/A N/A <body xmlns='http://www.w3.org/1999/xhtml'> N/A N/A html_body encode utf-8 </body> N/A N/A N/A message addChild node html N/A N/A N/A N/A self client send message N/A broadcast N/A N/A self body html_body exclude N/A None N/A N/A N/A Broadcast a message to users in the chatroom N/A N/A N/A logger info N/A broadcast on %s: %s N/A N/A self name body N/A member N/A filter N/A N/A N/A m N/A N/A N/A N/A N/A m get STATUS ACTIVE N/A m exclude N/A N/A self params N/A MEMBERS N/A N/A N/A N/A logger debug N/A member N/A JID N/A N/A N/A self send_message body member html_body html_body quiet True N/A do_marco N/A N/A self sender body args N/A N/A N/A Respond with 'polo' to the user N/A N/A N/A self send_message polo sender N/A do_invite N/A N/A self sender body args N/A N/A N/A Invite members to the chatroom on a user's behalf N/A invitee args N/A N/A new_member N/A JID invitee N/A N/A N/A self invite_user new_member inviter sender N/A do_kick N/A N/A self sender body args N/A N/A N/A Kick a member from the chatroom. Must be Admin to kick users N/A N/A N/A N/A sender get ADMIN True N/A N/A N/A user args N/A N/A N/A N/A self kick_user user N/A do_mute N/A N/A self sender body args N/A N/A N/A Temporarily mutes chatroom for a user N/A N/A N/A sender get MUTED N/A N/A N/A N/A self send_message you are already muted sender N/A N/A N/A N/A self broadcast N/A %s has muted this chatroom N/A N/A sender N/A NICK N/A N/A sender N/A QUEUED_MESSAGES N/A N/A N/A sender N/A MUTED True N/A do_unmute N/A N/A self sender body args N/A N/A N/A Unmutes the chatroom for a user N/A N/A N/A sender get MUTED N/A N/A N/A sender N/A MUTED False N/A N/A N/A self broadcast N/A %s has unmuted this chatroom N/A N/A sender N/A NICK N/A msg N/A N/A sender get QUEUED_MESSAGES N/A N/A N/A N/A N/A self send_message msg sender N/A N/A sender N/A QUEUED_MESSAGES N/A N/A N/A N/A N/A self send_message you were not muted sender N/A on_disconnect N/A N/A self N/A N/A N/A Handler for disconnection events N/A N/A N/A logger error Disconnected from server! N/A on_presence N/A N/A self session presence N/A N/A N/A Handles presence stanzas N/A from_jid N/A N/A presence getFrom N/A is_member N/A N/A self is_member N/A N/A from_jid getStripped N/A is_member N/A N/A member N/A N/A self get_member N/A N/A from_jid getStripped N/A N/A member None N/A N/A N/A logger info N/A presence: from=%s is_member=%s type=%s N/A from_jid is_member N/A N/A presence getType N/A N/A N/A N/A presence getType subscribed N/A N/A is_member N/A N/A N/A N/A logger info N/A [%s] accepted their invitation N/A from_jid N/A N/A member N/A STATUS ACTIVE N/A N/A N/A N/A N/A N/A N/A presence getType subscribe N/A N/A is_member N/A N/A N/A N/A logger info N/A Acknowledging subscription request from [%s] N/A from_jid N/A N/A N/A N/A self client sendPresence jid from_jid typ subscribed N/A N/A member N/A STATUS ACTIVE N/A N/A N/A self broadcast N/A %s has accepted their invitation! N/A from_jid N/A N/A N/A N/A N/A N/A N/A presence getType None N/A N/A is_member N/A N/A N/A member N/A ONLINE 1 N/A N/A N/A N/A N/A presence getType unavailable N/A N/A is_member N/A N/A N/A member N/A ONLINE 1 N/A N/A N/A N/A logger info N/A Unhandled presence stanza of type [%s] from [%s] N/A N/A N/A presence getType from_jid N/A on_message N/A N/A self con event N/A N/A N/A Handles messge stanzas N/A msg_type N/A N/A event getType N/A nick N/A N/A N/A N/A event getFrom getResource N/A from_jid N/A N/A N/A N/A event getFrom getStripped N/A body N/A N/A event getBody N/A N/A N/A msg_type chat N/A body None N/A N/A N/A N/A N/A logger debug N/A msg_type[%s] from[%s] nick[%s] body[%s] N/A msg_type from_jid nick body N/A sender N/A filter N/A N/A N/A m N/A N/A N/A m N/A JID from_jid N/A N/A self params N/A MEMBERS N/A should_process N/A N/A msg_type N/A message chat None N/A body None N/A N/A len sender 1 N/A N/A should_process N/A N/A N/A sender N/A sender N/A 0 N/A N/A N/A p N/A self command_patterns N/A N/A N/A reg cmd p N/A m N/A N/A reg match body N/A m N/A N/A N/A N/A logger info N/A pattern matched for bot command '%s' N/A cmd N/A function N/A getattr self N/A str cmd None N/A function N/A N/A N/A function sender body m N/A words N/A N/A body split N/A N/A cmd args N/A N/A words N/A 0 N/A words N/A 1 N/A N/A cmd N/A N/A cmd N/A 0 / N/A N/A cmd N/A cmd N/A 1 N/A command_handler N/A getattr self N/A do_ cmd None N/A command_handler N/A N/A N/A command_handler sender body args N/A broadcast_body N/A [%s] %s N/A N/A sender N/A NICK body N/A N/A N/A self broadcast broadcast_body exclude N/A sender N/A N/A N/A N/A N/A N/A logger exception N/A Error handling message [%s] from [%s] N/A body N/A sender N/A JID N/A N/A