Nick Murdoch schrieb:
> The actual output if I use .html is fine as xml, but the Content-Type
> is still "text/html", even if I explicitly set
> cherrypy.response.headers['Content-Type'].
You should set the response content-type with the 'content_type'
argument to the expose decorator and also set the format argument to 'xml'.
@expose('genshi:myproject.templates.foo', format='xml',
content_type='application/xml')
def foo(self):
return dict()
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---