fixed generic.xml

This commit is contained in:
mdipierro
2012-11-15 12:29:28 -06:00
parent 651c92c175
commit a69bc44314
3 changed files with 3 additions and 17 deletions

View File

@@ -1 +1 @@
Version 2.2.1 (2012-11-14 15:33:12) stable
Version 2.2.1 (2012-11-15 12:29:21) stable

View File

@@ -1,15 +1 @@
{{
###
# 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')
}}
{{from gluon.serializers import xml}}{{=XML(xml(response._vars,quote=False))}}

View File

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