summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-31 23:48:22 -0700
committerLance Stout <lancestout@gmail.com>2011-08-31 23:48:22 -0700
commit76bc0a2ba679828d17871c43bfe076b077c9b600 (patch)
tree87bb181172e726267f7cc20a611473f9fe622fde /sleekxmpp/plugins/xep_0060/stanza/pubsub.py
parentd2dc4824ee80cf73575c875dda9a54de4724d4b9 (diff)
downloadslixmpp-76bc0a2ba679828d17871c43bfe076b077c9b600.tar.gz
slixmpp-76bc0a2ba679828d17871c43bfe076b077c9b600.tar.bz2
slixmpp-76bc0a2ba679828d17871c43bfe076b077c9b600.tar.xz
slixmpp-76bc0a2ba679828d17871c43bfe076b077c9b600.zip
XEP-0060 v1.13 dictates publishing/retracting one item at a time.
Diffstat (limited to 'sleekxmpp/plugins/xep_0060/stanza/pubsub.py')
-rw-r--r--sleekxmpp/plugins/xep_0060/stanza/pubsub.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
index c370aeb9..9f3fbe22 100644
--- a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
+++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
@@ -140,7 +140,7 @@ registerStanzaPlugin(Pubsub, Create)
#
#registerStanzaPlugin(Pubsub, Default)
-class Publish(Items):
+class Publish(ElementBase):
namespace = 'http://jabber.org/protocol/pubsub'
name = 'publish'
plugin_attrib = name
@@ -150,6 +150,7 @@ class Publish(Items):
subitem = (Item,)
registerStanzaPlugin(Pubsub, Publish)
+registerStanzaPlugin(Publish, Item)
class Retract(ElementBase):
namespace = 'http://jabber.org/protocol/pubsub'