Artifact 8aecf60dfaa4f52b7996b2585170a054355e0668:
- File applications/examples/views/generic.xml — part of check-in [eba4a35a21] at 2011-08-08 04:53:38 on branch develop — Added web2py 1.98.2 (user: spiffy, size: 404) [annotate] [blame] [check-ins using]
{{ ### # 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') }}