[Zope] strange getPhysicalRoot behaviour

Dieter Maurer dieter at handshake.de
Thu Jul 28 15:16:29 EDT 2005


rr at nederhoed.com 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


More information about the Zope mailing list