[email protected] schrieb:
> What I can't understand is from what I can tell from the docs, instead
> of the cherrypy.response line I should be able to do
> @expose(content_type='text/plain') but that doesn't work.  It just
> sends it as text/html anyway.

Sure? The following worked for me with TG 1.0.8:

     @expose(content_type='text/plain')
     def show_text(self):
         return 'This is plain text'

-- Christoph

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to