summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/stanzabase.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-04-14 01:23:17 -0700
committerNathan Fritz <nathan@andyet.net>2010-04-14 01:23:17 -0700
commit80e7e0d0ee45acf5641f630c0f858a91cbf1a222 (patch)
treec8dad5af2fcd57c24e7f0ebe2f9284a171a19c1f /sleekxmpp/xmlstream/stanzabase.py
parent2f9f649d98682817c900736c6775ba8e5b23060f (diff)
downloadslixmpp-80e7e0d0ee45acf5641f630c0f858a91cbf1a222.tar.gz
slixmpp-80e7e0d0ee45acf5641f630c0f858a91cbf1a222.tar.bz2
slixmpp-80e7e0d0ee45acf5641f630c0f858a91cbf1a222.tar.xz
slixmpp-80e7e0d0ee45acf5641f630c0f858a91cbf1a222.zip
adding tests, fixed stanzapath matching to match keys, fixed pubsub#owner stanzas
Diffstat (limited to 'sleekxmpp/xmlstream/stanzabase.py')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index acb95786..6ed5cbd0 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -117,7 +117,7 @@ class ElementBase(tostring.ToString):
else:
nodes = matchstring
tagargs = nodes[0].split('@')
- if tagargs[0] not in (self.plugins, self.name): return False
+ if tagargs[0] not in (self.plugins, self.plugin_attrib): return False
founditerable = False
for iterable in self.iterables:
founditerable = iterable.match(nodes[1:])
@@ -325,8 +325,8 @@ class StanzaBase(ElementBase):
def clear(self):
for child in self.xml.getchildren():
self.xml.remove(child)
- #for plugin in list(self.plugins.keys()):
- # del self.plugins[plugin]
+ for plugin in list(self.plugins.keys()):
+ del self.plugins[plugin]
def reply(self):
self['from'], self['to'] = self['to'], self['from']