On Nov 11, 10:38 am, "Aaron Swartz" <[EMAIL PROTECTED]> wrote:
> > I've put print statements in gzip_start_response and they never get
> > output; however maybe the output is being captured by web.py. Since
> > the middleware wraps web.py, I assumed web.debug wouldn't work here.
> > What do you think?
>
> Yeah, web.py will catch raw prints but web.debug should still work.
You are right! (you knew it didn't you? ;-) Sorry for the
misinformation.
Its a simpler question now; the content type is not getting set. Do I
have to set that on a per-method basis, or is it possible to set it
globally in web.py somewhere and change it only for those views that
are not the default type? I could do this with a middleware, but it
seems like a common enough thing it might already be in web.py.
To set content-type I would use web.ctx['headers'].append('content-
type', 'text/html'), correct?
Thanks very much,
Dusty
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---