durusmail: quixote-users: Using _q_access? Any place for a _q_traverse?
Using _q_access? Any place for a _q_traverse?
2003-08-22
Re: Using _q_access? Any place for a _q_traverse?
2003-08-22
2003-08-22
Re: Using _q_access? Any place for a _q_traverse?
2003-08-22
2003-08-22
2003-08-23
2003-08-24
2003-08-24
2003-08-24
2003-08-24
2003-08-25
Using _q_access? Any place for a _q_traverse?
Oleg Broytmann
2003-08-22
On Fri, Aug 22, 2003 at 09:21:26AM -0600, VanL wrote:
> I also tried _q_access
>
> def _q_access(request):
>     session = request.session
>     if session.user is None:
>         return login(request)
>
> This works for all accesses to the front page.  However if I try to go
> to the url /nextpage (a new namespace) it allows access.
>
> What I really want is a gatekeeper function

   For me _q_access works exactly like such gatekeeper function. Any access
for any object is passed through root _q_access...

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

reply