Fix the order in which <identity/> and <feature/> tags are sent on disco#info
The identities should all be at the start, and features at the end, so we just prepend the identity on add_identity, and append features on add_feature
This commit is contained in:
parent
a721084f6e
commit
6e61adf3db
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class DiscoInfo(ElementBase):
|
||||||
id_xml.attrib['{%s}lang' % self.xml_ns] = lang
|
id_xml.attrib['{%s}lang' % self.xml_ns] = lang
|
||||||
if name:
|
if name:
|
||||||
id_xml.attrib['name'] = name
|
id_xml.attrib['name'] = name
|
||||||
self.xml.append(id_xml)
|
self.xml.insert(0, id_xml)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue