From 09252baa71819a967ade7370416e9bb9767f69d2 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 31 Aug 2011 14:31:20 -0700 Subject: Test publishing a single item. --- sleekxmpp/plugins/xep_0060/stanza/pubsub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sleekxmpp/plugins') 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() -- cgit v1.2.3