Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0163.py @ 2643:189e38fb11ff
core: style improvments (90 chars limit)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 29 Jul 2018 18:44:27 +0200 |
parents | 56f94936df1e |
children | 2901e22d1766 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0163.py Sun Jul 08 18:38:32 2018 +0200 +++ b/sat/plugins/plugin_xep_0163.py Sun Jul 29 18:44:27 2018 +0200 @@ -72,11 +72,14 @@ 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 @@ 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 """