Mercurial > libervia-backend
diff src/plugins/plugin_xep_0277.py @ 1771:b77dc676a4df
tmp (wokkel/rsm): various improvments:
- restored original tmp.wokkel.pubsub.PubSubService._toResponse_items
- changed arguments order in RSMRequest.__init__ to have most common arguments first
- added __str__ methods
- better parsing/toElement
- better handling of optional elements/attributes (count/index)
- _toResponse_items handler RSM set elements without modifying original pubsub _toResponse_items
- renamed parse to fromElement for coherency
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 05 Jan 2016 23:20:20 +0100 |
parents | d17772b0fe22 |
children | 0876352459e5 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py Sun Jan 03 18:36:41 2016 +0100 +++ b/src/plugins/plugin_xep_0277.py Tue Jan 05 23:20:20 2016 +0100 @@ -528,7 +528,6 @@ ret = yield self._p.publish(service, node, [item], profile_key=profile) defer.returnValue(ret) - ## retract ## def _mbRetract(self, service_jid_s, nodeIdentifier, itemIdentifier, profile_key): @@ -680,8 +679,6 @@ publishers[:] = [jid.JID(publisher) for publisher in publishers] return publishers_type, publishers - - # subscribe # def _mbSubscribeToMany(self, publishers_type, publishers, profile_key):