mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-28 11:14:19 +00:00
Make stanza.plugins an OrderedDict.
This allows you to determine the order in which substanzas were added in the original XML.
This commit is contained in:
parent
38dc35840e
commit
35ef8f9090
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue