tools (xml_tools): keeps data form result headers sorted
This commit is contained in:
parent
822798d965
commit
56dc4840a6
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ from wokkel import data_form
|
|||
from twisted.words.xish import domish
|
||||
from twisted.words.protocols.jabber import jid
|
||||
from sat.core import exceptions
|
||||
from collections import OrderedDict
|
||||
|
||||
|
||||
"""This library help manage XML used in SàT (parameters, registration, etc)"""
|
||||
|
|
@ -141,7 +142,7 @@ def dataFormResult2AdvancedList(xmlui, form_xml):
|
|||
@param form_xml (domish.Element): element of the data form
|
||||
@return: the completed XMLUI instance
|
||||
"""
|
||||
headers = {}
|
||||
headers = OrderedDict()
|
||||
try:
|
||||
reported_elt = form_xml.elements('jabber:x:data', 'reported').next()
|
||||
except StopIteration:
|
||||
|
|
|
|||
Loading…
Reference in a new issue