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:
Florent Le Coz 2015-08-22 18:48:29 +02:00
parent a721084f6e
commit 6e61adf3db

View file

@ -120,7 +120,7 @@ class DiscoInfo(ElementBase):
id_xml.attrib['{%s}lang' % self.xml_ns] = lang
if name:
id_xml.attrib['name'] = name
self.xml.append(id_xml)
self.xml.insert(0, id_xml)
return True
return False