XML_NS_V20 -> XML_NS_V10

Change-Id: I4a2b42728145ef8e3c17ebeb3b794a5c29c30e9d
This commit is contained in:
Isaku Yamahata 2015-04-09 14:39:24 -07:00
parent 259e128dde
commit e29e918159
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -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):