MobileBlur

generic.xml at [eba4a35a21]
Login

generic.xml at [eba4a35a21]

File applications/examples/views/generic.xml artifact 8aecf60dfa part of check-in eba4a35a21


{{
###
# 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')
}}