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
This commit is contained in:
parent
b5d2fda488
commit
9c6d0fecc4
1 changed files with 131 additions and 77 deletions
|
|
@ -528,7 +528,6 @@ class XEP_0277(object):
|
|||
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 @@ class XEP_0277(object):
|
|||
publishers[:] = [jid.JID(publisher) for publisher in publishers]
|
||||
return publishers_type, publishers
|
||||
|
||||
|
||||
|
||||
# subscribe #
|
||||
|
||||
def _mbSubscribeToMany(self, publishers_type, publishers, profile_key):
|
||||
|
|
|
|||
Loading…
Reference in a new issue