summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0060
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-08-31 14:31:20 -0700
committerLance Stout <lancestout@gmail.com>2011-08-31 14:31:20 -0700
commit09252baa71819a967ade7370416e9bb9767f69d2 (patch)
tree4f0fd3ec4b1bc9e2ac2602335881e7cbf908cc15 /sleekxmpp/plugins/xep_0060
parent3623a7a16ab36bfc5f0a9c8e74dd38d9c94b4246 (diff)
downloadslixmpp-09252baa71819a967ade7370416e9bb9767f69d2.tar.gz
slixmpp-09252baa71819a967ade7370416e9bb9767f69d2.tar.bz2
slixmpp-09252baa71819a967ade7370416e9bb9767f69d2.tar.xz
slixmpp-09252baa71819a967ade7370416e9bb9767f69d2.zip
Test publishing a single item.
Diffstat (limited to 'sleekxmpp/plugins/xep_0060')
-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 ed3e57d4..139992e3 100644
--- a/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
+++ b/sleekxmpp/plugins/xep_0060/stanza/pubsub.py
@@ -92,7 +92,8 @@ class Item(ElementBase):
plugin_tag_map = {}
def setPayload(self, value):
- self.xml.append(value)
+ del self['payload']
+ self.append(value)
def getPayload(self):
childs = self.xml.getchildren()