core: style improvments (90 chars limit)
This commit is contained in:
parent
0e23f244f5
commit
ff79fa3ce0
1 changed files with 219 additions and 196 deletions
|
|
@ -72,11 +72,14 @@ class XEP_0163(object):
|
|||
def addPEPEvent(self, event_type, node, in_callback, out_callback=None, notify=True):
|
||||
"""Add a Personal Eventing Protocol event manager
|
||||
|
||||
@param event_type(unicode): type of the event (always uppercase), can be MOOD, TUNE, etc
|
||||
@param node(unicode): namespace of the node (e.g. http://jabber.org/protocol/mood for User Mood)
|
||||
@param event_type(unicode): type of the event (always uppercase),
|
||||
can be MOOD, TUNE, etc
|
||||
@param node(unicode): namespace of the node (e.g. http://jabber.org/protocol/mood
|
||||
for User Mood)
|
||||
@param in_callback(callable): method to call when this event occur
|
||||
the callable will be called with (itemsEvent, profile) as arguments
|
||||
@param out_callback(callable,None): method to call when we want to publish this event (must return a deferred)
|
||||
@param out_callback(callable,None): method to call when we want to publish this
|
||||
event (must return a deferred)
|
||||
the callable will be called when sendPEPEvent is called
|
||||
@param notify(bool): add autosubscribe (+notify) if True
|
||||
"""
|
||||
|
|
@ -116,7 +119,8 @@ class XEP_0163(object):
|
|||
def PEPSend(self, event_type, data, profile_key=C.PROF_KEY_NONE):
|
||||
"""Send personal event after checking the data is alright
|
||||
|
||||
@param event_type: type of event (eg: MOOD, TUNE), must be in self.pep_out_cb.keys()
|
||||
@param event_type: type of event (eg: MOOD, TUNE),
|
||||
must be in self.pep_out_cb.keys()
|
||||
@param data: dict of {string:string} of event_type dependant data
|
||||
@param profile_key: profile who send the event
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue