[Zope] BeforeTraverse and SSLAuth
Antonio Beamud Montero
antonio.beamud@agora-2000.com
09 Oct 2002 11:22:54 +0200
Hello all:
I have a product that is an extension of Folder, and I want to include
SSL cert. auth when I traverse this extended Folder. I have implemented
a method that checks the existence of a user in the acl_user inside my
extended Folder, and a __call__ method that uses this other method. but
now I don't know how to register this method with BeforeTraverse...
Inside BeforeTraverse code I saw:
--------------------->
def registerBeforeTraverse(container, object, app_handle, priority=99):
"""Register an object to be called before a container is traversed.
'app_handle' should be a string or other hashable value that
distinguishes the application of this object, and which must
be used in order to unregister the object.
If the container will be pickled, the object must be a callable
class instance, not a function or method.
----------------------->
What value I need for 'app_handle'? And for object?, for container I'll
put self.
Thanks in advance.
--
Microsoft merges technologoies:
Windows CE + Windows ME + Windows NT = Windows CEMENT
----
Antonio Beamud Montero
Agora Systems S.A.
http://www.agoratechnologies.com