durusmail: quixote-users: RELEASED: Quixote 2.0a2
RELEASED: Quixote 2.0a2
2004-11-23
2004-11-23
2004-11-23
2004-11-23
2004-11-24
2004-11-24
2004-11-25
2004-11-24
Re: R: [Quixote-users] RELEASED: Quixote 2.0a2
2004-11-25
2004-11-28
2004-11-28
2004-11-28
2004-11-29
2004-11-23
RELEASED: Quixote 2.0a2
Neil Schemenauer
2004-11-23
On Tue, Nov 23, 2004 at 08:45:47PM +0300, Oleg Broytmann wrote:
> >     The _q_access hook is gone.
>
>    How does one supposed to test authentication/authorization?

Any way you want to, including using _q_access(). ;-)

I thought I had deleted it but the 2.0a2 release still includes a
mix-in class called AccessControlled.  E.g.

    class MyDirectory(AccessControlled, Directory):

        def _q_access(self):
            ...

If you like to have the request object as an argument, you can write
your own mixin.  We have decided to use utility functions for access
control. E.g.

    class MyDirectory(Directory):

        def _q_index(self):
            check_access()
            ...

Cheers,

  Neil

reply