> -- I am developing a CMF "link" product which defines its own traverse
>  method:
>   def __bobo_traverse__(self, request, name=None):
>     "Traverse method hook"
>     if hasattr(self, name):
>       # return own attributes/subobjects
>       return getattr(self, name)
>     else:
>       t= self.getTarget()
>       if hasattr(t, name):
>         # return target's attributes/subobjects
>         return getattr(t, name)
>       else:
>         return t
> -- It works fine under the ZMI but when I try to access an object of this
> product into a CMF portal using the CMF interface, Zope requests me login
> name and password (even if I am admin!!), which it doesn't accept, so the
> only way to continue is to cancel instead of triying to log in.

I had a similar problem when accessing the request object in
__bobo_traverse__(self, request, name). Authentication didnīt work
I donīt what happens in getTarget() but maybe thatīs the problem.

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to