summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorNathan Fritz <fritz@netflint.net>2010-01-13 09:04:05 -0800
committerNathan Fritz <fritz@netflint.net>2010-01-13 09:04:05 -0800
commit6e1aa0690f4c2bcc1031aed05305ef84f36fbb57 (patch)
treee9536281f035071b8c0cb6126c04ea8b072a075b /sleekxmpp/xmlstream/stanzabase.py
parentd14045f5a6eec370f0374b1e7dab6eb58bc70d48 (diff)
downloadslixmpp-6e1aa0690f4c2bcc1031aed05305ef84f36fbb57.tar.gz
slixmpp-6e1aa0690f4c2bcc1031aed05305ef84f36fbb57.tar.bz2
slixmpp-6e1aa0690f4c2bcc1031aed05305ef84f36fbb57.tar.xz
slixmpp-6e1aa0690f4c2bcc1031aed05305ef84f36fbb57.zip
Completed basic test coverage of xmlns http://jabber.org/protocol/pubsub stanzas
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 8bdcb0b0..277882e8 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -64,7 +64,8 @@ class ElementBase(object):
if not isinstance(item, ElementBase):
raise TypeError
self.xml.append(item.xml)
- return self.iterables.append(item)
+ self.iterables.append(item)
+ return self
def pop(self, idx=0):
aff = self.iterables.pop(idx)
@@ -236,7 +237,7 @@ class ElementBase(object):
self.plugins[interface].setValues(attrib[interface])
return self
- def append(self, xml):
+ def appendxml(self, xml):
self.xml.append(xml)
return self