XML_NS_V20 -> XML_NS_V10
Change-Id: I4df07e9c2bad16f21c7838fa2268dc21ac7e3d22
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
|
|
||||||
EXT_NS = '_extension_ns'
|
EXT_NS = '_extension_ns'
|
||||||
XML_NS_V20 = 'http://openstack.org/tacker/api/v1.0'
|
XML_NS_V10 = 'http://openstack.org/tacker/api/v1.0'
|
||||||
XSI_NAMESPACE = "http://www.w3.org/2001/XMLSchema-instance"
|
XSI_NAMESPACE = "http://www.w3.org/2001/XMLSchema-instance"
|
||||||
XSI_ATTR = "xsi:nil"
|
XSI_ATTR = "xsi:nil"
|
||||||
XSI_NIL_ATTR = "xmlns:xsi"
|
XSI_NIL_ATTR = "xmlns:xsi"
|
||||||
|
@@ -76,7 +76,7 @@ class XMLDictSerializer(DictSerializer):
|
|||||||
if not xmlns:
|
if not xmlns:
|
||||||
xmlns = self.metadata.get('xmlns')
|
xmlns = self.metadata.get('xmlns')
|
||||||
if not xmlns:
|
if not xmlns:
|
||||||
xmlns = constants.XML_NS_V20
|
xmlns = constants.XML_NS_V10
|
||||||
self.xmlns = xmlns
|
self.xmlns = xmlns
|
||||||
|
|
||||||
def default(self, data):
|
def default(self, data):
|
||||||
@@ -239,7 +239,7 @@ class XMLDeserializer(TextDeserializer):
|
|||||||
self.metadata = metadata or {}
|
self.metadata = metadata or {}
|
||||||
xmlns = self.metadata.get('xmlns')
|
xmlns = self.metadata.get('xmlns')
|
||||||
if not xmlns:
|
if not xmlns:
|
||||||
xmlns = constants.XML_NS_V20
|
xmlns = constants.XML_NS_V10
|
||||||
self.xmlns = xmlns
|
self.xmlns = xmlns
|
||||||
|
|
||||||
def _get_key(self, tag):
|
def _get_key(self, tag):
|
||||||
|
@@ -242,7 +242,7 @@ class ClientBase(object):
|
|||||||
ns = dict([(ext['alias'], ext['namespace']) for ext in exts])
|
ns = dict([(ext['alias'], ext['namespace']) for ext in exts])
|
||||||
self.EXTED_PLURALS.update(constants.PLURALS)
|
self.EXTED_PLURALS.update(constants.PLURALS)
|
||||||
return {'plurals': self.EXTED_PLURALS,
|
return {'plurals': self.EXTED_PLURALS,
|
||||||
'xmlns': constants.XML_NS_V20,
|
'xmlns': constants.XML_NS_V10,
|
||||||
constants.EXT_NS: ns}
|
constants.EXT_NS: ns}
|
||||||
|
|
||||||
def content_type(self, _format=None):
|
def content_type(self, _format=None):
|
||||||
|
Reference in New Issue
Block a user