summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0060/pubsub.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-31 14:05:29 -0700
committerLance Stout <lancestout@gmail.com>2011-08-31 14:05:29 -0700
commit3623a7a16ab36bfc5f0a9c8e74dd38d9c94b4246 (patch)
tree2bf3dc9866f4a934b41b2365e77d7d1fdc528426 /sleekxmpp/plugins/xep_0060/pubsub.py
parentcc504ab07c984b19a4e959656ffbd657ca80c949 (diff)
downloadslixmpp-3623a7a16ab36bfc5f0a9c8e74dd38d9c94b4246.tar.gz
slixmpp-3623a7a16ab36bfc5f0a9c8e74dd38d9c94b4246.tar.bz2
slixmpp-3623a7a16ab36bfc5f0a9c8e74dd38d9c94b4246.tar.xz
slixmpp-3623a7a16ab36bfc5f0a9c8e74dd38d9c94b4246.zip
More pubsub unit tests!
Diffstat (limited to 'sleekxmpp/plugins/xep_0060/pubsub.py')
-rw-r--r--sleekxmpp/plugins/xep_0060/pubsub.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0060/pubsub.py b/sleekxmpp/plugins/xep_0060/pubsub.py
index a891573e..cb6cbacd 100644
--- a/sleekxmpp/plugins/xep_0060/pubsub.py
+++ b/sleekxmpp/plugins/xep_0060/pubsub.py
@@ -206,7 +206,10 @@ class xep_0060(base_plugin):
be executed when a reply stanza is received.
"""
iq = self.xmpp.Iq(sto=jid, sfrom=ifrom, stype='get')
- iq['pubsub_owner']['default']['node'] = node
+ if node is None:
+ iq['pubsub_owner']['default']
+ else:
+ iq['pubsub_owner']['configure']['node'] = node
return iq.send(block=block, callback=callback, timeout=timeout)
def get_node_subscriptions(self, jid, node, ifrom=None, block=True,
@@ -276,7 +279,7 @@ class xep_0060(base_plugin):
callback=None, timeout=None):
iq = self.xmpp.Iq(sto=jid, sfrom=ifrom, stype='set')
iq['pubsub_owner']['configure']['node'] = node
- iq['pubsub_owner']['configure']['config'] = config
+ iq['pubsub_owner']['configure']['form'].values = config.values
return iq.send(block=block, callback=callback, timeout=timeout)
def publish(self, jid, node, item_id=None, payload=None, items=None,