summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0060/pubsub.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-09-01 13:36:11 -0700
committerLance Stout <lancestout@gmail.com>2011-09-01 13:36:11 -0700
commit7e5e9542e9873a251986bedfe274904e629920d0 (patch)
tree42e1ccf02383d5ea60591c26634b3d2e7d087e9f /sleekxmpp/plugins/xep_0060/pubsub.py
parentd7fc2aaa9cd8427f73c78f1e6bfbc1c9e1569cf6 (diff)
downloadslixmpp-7e5e9542e9873a251986bedfe274904e629920d0.tar.gz
slixmpp-7e5e9542e9873a251986bedfe274904e629920d0.tar.bz2
slixmpp-7e5e9542e9873a251986bedfe274904e629920d0.tar.xz
slixmpp-7e5e9542e9873a251986bedfe274904e629920d0.zip
Add support for notify attribute when retracting an item.
Diffstat (limited to 'sleekxmpp/plugins/xep_0060/pubsub.py')
-rw-r--r--sleekxmpp/plugins/xep_0060/pubsub.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0060/pubsub.py b/sleekxmpp/plugins/xep_0060/pubsub.py
index 2a31e374..ec3fb9bb 100644
--- a/sleekxmpp/plugins/xep_0060/pubsub.py
+++ b/sleekxmpp/plugins/xep_0060/pubsub.py
@@ -317,7 +317,7 @@ class xep_0060(base_plugin):
iq['pubsub']['publish_options'] = options
return iq.send(block=block, callback=callback, timeout=timeout)
- def retract(self, jid, node, id, ifrom=None, block=True,
+ def retract(self, jid, node, id, notify=None, ifrom=None, block=True,
callback=None, timeout=None):
"""
Delete a single item from a node.
@@ -325,6 +325,7 @@ class xep_0060(base_plugin):
iq = self.xmpp.Iq(sto=jid, sfrom=ifrom, stype='set')
iq['pubsub']['retract']['node'] = node
+ iq['pubsub']['retract']['notify'] = notify
iq['pubsub']['retract']['item']['id'] = id
return iq.send(block=block, callback=callback, timeout=timeout)