[EMAIL PROTECTED] wrote at 2005-7-28 13:24 +0200:
> ...
>if I use
>root = context.getPhysicalRoot()
>
>I am forced to reenter my Zope username and password and will not get 
>permission
>to call the getPhysicalRoot function.
>
>What am I doing wrong?

For unknown reasons, "getPhysicalRoot" is private.

The standard workaround looks like this:

    root = container.restrictedTraverse('/')


Of course, it is stupid to make "getPhysicalRoot" private
when it is so easy to access the root anyway...

-- 
Dieter
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to