Dan Eloff
dan.eloff at gmail.com
Thu Aug 17 16:37:44 EDT 2006
Hey Thanks! -Dan On 8/17/06, Gavin Panella <gavin at premolo.com> wrote: > On Thu 17 Aug 2006 15:42, Dan Eloff wrote: > > How do you know in your handler if this is an internal redirect? > > req.prev is set to a req object even if there was no internal > > redirect. > > In the main request req.main is None, and in a subrequest it points back to > the main request, so just test if it's not None. > > Gavin. > > -- > Premolo Sàrl > Web: http://www.premolo.com/ ; Tel: +352 26687161 ; GSM: +352 091739359 > 42 rue du Kiem, L-1857 Luxembourg, Grand-Duché du Luxembourg > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|