On Oct 8, 5:22 pm, Matthew Bevan <[email protected]> wrote:
> Kris,
> > 1. @expose (content_type = CUSTOM_CONTENT_TYPE)
> > pylons.response.headers['Content-Type'] = 'text/xml'
>
> Have you tried setting the header on the turbogears-specific
> response? (tg.response, I believe.) I recall something about TG
> copying the pylons response instead of simply referencing it (which
> means changes to the pylons response will be ignored.)
The tg package has the following line in __init__.py
from pylons import app_globals, request, response, tmpl_context,
session
so I believe tg.response is the same as pylons.response (reference)..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---