durusmail: quixote-users: quixote 2.4 and _q_access
quixote 2.4 and _q_access
2008-04-22
2008-04-22
2008-04-22
2008-04-22
2008-04-22
2008-04-23
quixote 2.4 and _q_access
Titus Brown
2008-04-22
On Tue, Apr 22, 2008 at 10:23:22PM +0200, alexander krohn wrote:
-> Titus Brown schrieb:
-> >Hi, Alexander, can you give us a short example that doesn't work?
-> >
-> >
-> i think it's a problem about the traversal.

try:

class RootDirectory(AccessControlled, Directory):
  ...

Apparently the method resolution order requires things in this order!?
Took me a little while to track down.

cheers,
--titus

-> class RootDirectory(Directory, AccessControlled):
->    _q_exports = ['', ]
->    def _q_index(self):
->        return "moin"
->
->    def _q_access():
->        raise AccessError()
reply