fixed generic.xml
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.2.1 (2012-11-14 15:33:12) stable
|
Version 2.2.1 (2012-11-15 12:29:21) stable
|
||||||
|
|||||||
@@ -1,15 +1 @@
|
|||||||
{{
|
{{from gluon.serializers import xml}}{{=XML(xml(response._vars,quote=False))}}
|
||||||
###
|
|
||||||
# response._vars contains the dictionary returned by thecontroller action
|
|
||||||
###
|
|
||||||
try:
|
|
||||||
from gluon.serializers import xml
|
|
||||||
response.write(xml(response._vars), escape=False)
|
|
||||||
response.headers['Content-Type'] = 'text/xml'
|
|
||||||
except (TypeError, ValueError):
|
|
||||||
raise HTTP(405, 'XML serialization error')
|
|
||||||
except ImportError:
|
|
||||||
raise HTTP(405, 'XML not available')
|
|
||||||
except:
|
|
||||||
raise HTTP(405, 'XML error')
|
|
||||||
}}
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<?xml version="1.0" encoding="ISO-8859-1"?>{{from gluon.serializers import xml}}{{=XML(xml(response._vars,quote=False))}}
|
{{from gluon.serializers import xml}}{{=XML(xml(response._vars,quote=False))}}
|
||||||
|
|||||||
Reference in New Issue
Block a user