From 80e7e0d0ee45acf5641f630c0f858a91cbf1a222 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Wed, 14 Apr 2010 01:23:17 -0700 Subject: adding tests, fixed stanzapath matching to match keys, fixed pubsub#owner stanzas --- sleekxmpp/xmlstream/stanzabase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sleekxmpp/xmlstream') 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'] -- cgit v1.2.3