Reply my self: I have registered the next: handle = self.meta_type + '/' + self.getId() nc = BeforeTraverse.NameCaller(self.getId()) BeforeTraverse.registerBeforeTraverse(container, nc, handle) And all works fine, but If I have a valid certificate, but the user is not registered in this folder, the auth traverse try to find in the parent folder... the parent folder hasn't SSL Auth, then zope prompt's for a user a password... How I can avoid this? I wan't if the user is not registered in this folder, zope raises automatically an "Unauthorized Exception"... Thanks in advance El mié, 09-10-2002 a las 11:22, Antonio Beamud Montero escribió:
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
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT
---- Antonio Beamud Montero Agora Systems S.A. http://www.agoratechnologies.com