[gen] method Mixin.xml: if the method result is already XML, it is not marshalled again.
This commit is contained in:
parent
6a83285e64
commit
e031e5b138
|
@ -498,6 +498,9 @@ class BaseMixin:
|
||||||
elif isinstance(methodRes, file):
|
elif isinstance(methodRes, file):
|
||||||
res = methodRes.read()
|
res = methodRes.read()
|
||||||
methodRes.close()
|
methodRes.close()
|
||||||
|
elif isinstance(methodRes, basestring) and \
|
||||||
|
methodRes.startswith('<?xml'): # Already XML
|
||||||
|
return methodRes
|
||||||
else:
|
else:
|
||||||
res = XmlMarshaller().marshall(methodRes, objectType='appy')
|
res = XmlMarshaller().marshall(methodRes, objectType='appy')
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
Loading…
Reference in a new issue