/usr/lib/python3/dist-packages/twisted/words/im/__pycache__
Edit: /usr/lib/python3/dist-packages/twisted/words/im/__pycache__/basesupport.cpython-310.pyc (9217B)
o
b @ s d Z ddlmZ ddlmZ ddlmZmZ ddlm Z ddl
mZ ddlm
Z
ddlmZmZ G d d
d
ZG dd dZG d
d dZG dd de jZdS )zyInstance Messenger base classes for protocol support.
You will find these useful if you're adding a new protocol to IM.
)Type)error)ProtocolconnectionDone)styles)FailureprefixedMethods)OFFLINEOfflineErrorc @ sP e Zd Zdd Zdd Zdd Zdd Zd d
Zdefdd
Z defddZ
dS )
AbstractGroupc C s || _ || _d S N)nameaccount)selfr r r >/usr/lib/python3/dist-packages/twisted/words/im/basesupport.py__init__ s
zAbstractGroup.__init__c C
t | dS )zfinds group commands
these commands are methods on me that start with imgroup_; they are
called with no arguments
imgroup_r r r r r getGroupCommands
zAbstractGroup.getGroupCommandsc C r )a( finds group commands
these commands are methods on me that start with imgroup_; they are
called with a user present within this room as an argument
you may want to override this in your group in order to filter for
appropriate commands on the given user
imtarget_r )r targetr r r getTargetCommands# s
zAbstractGroup.getTargetCommandsc C | j jst| j j| j d S r
)r clientr joinGroupr r r r r join. zAbstractGroup.joinc C r r
)r r r
leaveGroupr r r r r leave3 r zAbstractGroup.leavereturnc C s d| j d| jdS )N< >) __class__r r r r r __repr__8 s zAbstractGroup.__repr__c C | j d| jj S N@r r accountNamer r r r __str__; zAbstractGroup.__str__N)__name__
__module____qualname__r r r r r" strr( r. r r r r r s r c @ s@ e Zd Zdd Zdd Zdd Zdefdd Zdefd
dZdS )
AbstractPersonc C s || _ || _t| _d S r
)r r r
status)r r baseAccountr r r r @ s
zAbstractPerson.__init__c C r )zfinds person commands
these commands are methods on me that start with imperson_; they are
called with no arguments
imperson_r r r r r getPersonCommandsE r z AbstractPerson.getPersonCommandsc C s dS )z#
Returns a string.
z--r r r r r getIdleTimeM s zAbstractPerson.getIdleTimer# c C s d| j d| jd| j dS )Nr$ r% /r&