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
@ -14,6 +14,7 @@ from xml.etree import cElementTree as ET
|
|||||||
|
|
||||||
from sleekxmpp.xmlstream import JID
|
from sleekxmpp.xmlstream import JID
|
||||||
from sleekxmpp.xmlstream.tostring import tostring
|
from sleekxmpp.xmlstream.tostring import tostring
|
||||||
|
from sleekxmpp.thirdparty import OrderedDict
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
@ -230,7 +231,7 @@ class ElementBase(object):
|
|||||||
self.setStanzaValues = self._set_stanza_values
|
self.setStanzaValues = self._set_stanza_values
|
||||||
|
|
||||||
self.xml = xml
|
self.xml = xml
|
||||||
self.plugins = {}
|
self.plugins = OrderedDict()
|
||||||
self.iterables = []
|
self.iterables = []
|
||||||
self._index = 0
|
self._index = 0
|
||||||
self.tag = self.tag_name()
|
self.tag = self.tag_name()
|
||||||
|
Loading…
Reference in New Issue
Block a user