diff options
author | Lance Stout <lancestout@gmail.com> | 2011-01-27 16:01:35 -0500 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-01-27 16:01:35 -0500 |
commit | 35ef8f909077fa700ebd90e5ccbd3fd71a7c2f7e (patch) | |
tree | 09ec7f5d65245d1d7f09c47493d0792f30f775d6 | |
parent | 38dc35840e5653ad99ecb5c65fef464b751a32e2 (diff) | |
download | slixmpp-35ef8f909077fa700ebd90e5ccbd3fd71a7c2f7e.tar.gz slixmpp-35ef8f909077fa700ebd90e5ccbd3fd71a7c2f7e.tar.bz2 slixmpp-35ef8f909077fa700ebd90e5ccbd3fd71a7c2f7e.tar.xz slixmpp-35ef8f909077fa700ebd90e5ccbd3fd71a7c2f7e.zip |
Make stanza.plugins an OrderedDict.
This allows you to determine the order in which substanzas
were added in the original XML.
-rw-r--r-- | sleekxmpp/xmlstream/stanzabase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index 558ab743..3937a7a9 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -14,6 +14,7 @@ from xml.etree import cElementTree as ET from sleekxmpp.xmlstream import JID from sleekxmpp.xmlstream.tostring import tostring +from sleekxmpp.thirdparty import OrderedDict log = logging.getLogger(__name__) @@ -230,7 +231,7 @@ class ElementBase(object): self.setStanzaValues = self._set_stanza_values self.xml = xml - self.plugins = {} + self.plugins = OrderedDict() self.iterables = [] self._index = 0 self.tag = self.tag_name() |