XML_NS_V20 -> XML_NS_V10
Change-Id: I4a2b42728145ef8e3c17ebeb3b794a5c29c30e9d
This commit is contained in:
parent
259e128dde
commit
e29e918159
|
@ -619,6 +619,6 @@ EXT_NSES_BC = {}
|
|||
|
||||
def get_attr_metadata():
|
||||
return {'plurals': PLURALS,
|
||||
'xmlns': constants.XML_NS_V20,
|
||||
'xmlns': constants.XML_NS_V10,
|
||||
constants.EXT_NS: EXT_NSES,
|
||||
constants.EXT_NS_COMP: EXT_NSES_BC}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
EXT_NS_COMP = '_backward_comp_e_ns'
|
||||
EXT_NS = '_extension_ns'
|
||||
XML_NS_V20 = 'http://openstack.org/tacker/api/v2.0'
|
||||
XML_NS_V10 = 'http://openstack.org/tacker/api/v1.0'
|
||||
XSI_NAMESPACE = "http://www.w3.org/2001/XMLSchema-instance"
|
||||
XSI_ATTR = "xsi:nil"
|
||||
XSI_NIL_ATTR = "xmlns:xsi"
|
||||
|
|
|
@ -412,7 +412,7 @@ class XMLDictSerializer(DictSerializer):
|
|||
if not xmlns:
|
||||
xmlns = self.metadata.get('xmlns')
|
||||
if not xmlns:
|
||||
xmlns = constants.XML_NS_V20
|
||||
xmlns = constants.XML_NS_V10
|
||||
self.xmlns = xmlns
|
||||
|
||||
def default(self, data):
|
||||
|
@ -644,7 +644,7 @@ class XMLDeserializer(TextDeserializer):
|
|||
self.metadata = metadata or {}
|
||||
xmlns = self.metadata.get('xmlns')
|
||||
if not xmlns:
|
||||
xmlns = constants.XML_NS_V20
|
||||
xmlns = constants.XML_NS_V10
|
||||
self.xmlns = xmlns
|
||||
|
||||
def _get_key(self, tag):
|
||||
|
|
Loading…
Reference in New Issue