Re: Redirecting from rend method of some fragment.
Eugene Chernyshov <[email protected]> Thu, 19 Jun 2008 15:54:51 +0300
| Newsgroups | gmane.comp.python.quotient.dev |
|---|---|
| Message-ID | <[email protected]> |
Jean-Paul Calderone: > Redirecting with a Fragment is tricky. request.redirect() has to be > able to set a response header. If it can't, it won't work > (unfortunately, > it fails silently). If bytes for the response body have already been > written, then you can't set set anymore response headers. Since a > Fragment > is only part of a page, the chances are good that some other code which > is also part of the page has already written some of the response body. > > So, you need to be careful not to write anything to the request before > you > do the redirect. > > If you do that and it still doesn't work, please post again with more > details. > > Jean-Paul > > > _______________________________________________ > Divmod-dev mailing list > [email protected] > http://divmod.org/users/mailman.twistd/listinfo/divmod-dev > I think it is imposible since I've used Nevow. I'm not sure was something written into respond body or not. Can I make some kind of fake request (or context) to make rendering into it and check headers at the end? If so, please tell me how.