content_type error/status

0 views
Skip to first unread message

EricHolmberg

unread,
Sep 26, 2007, 11:44:35 PM9/26/07
to TurboGears Trunk
I'm trying to serve content with a MIMI type of application/xhtml+xml
and tried the following:

@expose("tg2test.templates.svgtest",content_type="application/xhtml
+xml")
def svgtest(self):
from datetime import datetime
return dict(now=datetime.now())

Unfortunately, line 161 of the WSGIController class in core.py, rev
3506 is clobbering the headers set up by the expose decorator:

response.headers.update(pylons.response.headers)

I read a little about the discussion of content_type and the older
tg_format parameter from here:
http://groups.google.com/group/turbogears-trunk/browse_frm/thread/d5aa32c081852a99/e91956b8a2cd378f?lnk=gst&q=content_type&rnum=2#e91956b8a2cd378f

What is the status of this / is this a bug that needs some help or am
I doing something wrong?

Thanks,

Eric

Reply all
Reply to author
Forward
0 new messages