durusmail: quixote-users: can a _q_lookup return a redirect?
can a _q_lookup return a redirect?
2004-11-11
2004-11-11
2004-11-11
2004-11-11
2004-11-11
code and doc
2004-11-11
2004-11-11
2004-11-11
2004-11-11
2004-11-12
2004-11-13
2004-11-11
OT: code and doc
2004-11-11
2004-11-11
2004-12-03
2004-12-03
2004-12-03
can a _q_lookup return a redirect?
Mario Ruggier
2004-12-03
Changing over to 2.0a2 (from 2.0a1, that was the environment of the
problem described below), plus running with the application using
simple_server.py, I see that there is no longer a HTTP_REFERER request
header. Isn't this set by the client? Where is it being dropped?

mario

On Nov 11, 2004, at 4:05 PM, Oleg Broytmann wrote:
> On Thu, Nov 11, 2004 at 04:02:14PM +0100, Mario Ruggier wrote:
>>     def _q_lookup(self, request, component):
>>         # ... do something with component ...
>>         print component, request.get_url(),
>> request.get_header('HTTP_REFERER')
>>         request.redirect(request.get_header('HTTP_REFERER') or
>> '/path/'
>
> from quixote.util import Redirector
> ....
>    def _q_lookup(self, request, component):
> ....
>       return Redirector("/new/location")
>
> Oleg.


reply