Browse Source

XML_NS_V20 -> XML_NS_V10

Change-Id: I4a2b42728145ef8e3c17ebeb3b794a5c29c30e9d
changes/72/172272/2
Isaku Yamahata 7 years ago
parent
commit
e29e918159
  1. 2
      tacker/api/v1/attributes.py
  2. 2
      tacker/common/constants.py
  3. 4
      tacker/wsgi.py

2
tacker/api/v1/attributes.py

@ -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}

2
tacker/common/constants.py

@ -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"

4
tacker/wsgi.py

@ -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…
Cancel
Save