[Zope] strange getPhysicalRoot behaviour

Andreas Jung lists at andreas-jung.com
Thu Jul 28 23:27:04 EDT 2005


Please file a bug report to make getPhysicalPath() publilc. I agree with 
Dieter that it is dumb to make it private if you can get the root using 
restrictedTraverse()).

-aj

--On 28. Juli 2005 22:22:42 +0200 Robert-Reinder Nederhoed 
<rr at nederhoed.com> wrote:

> Solved.
>
>
> Thanks for the reactions. It works! My current code looks like this now:
>
># force function in '/root/functions'
> far = context.restrictedTraverse('/').functions.far
>
> x = foo()
> print far(value=x)
>
>> Of course, it is stupid to make "getPhysicalRoot" private
>> when it is so easy to access the root anyway...
> Why not just add 'root' to the script vocabulary?
>
>
> Friendly greetings from an almost nightly The Hague, Robert-Reinder
>
> --
> _______________________________________________
> Zope maillist  -  Zope at 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 )



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050729/3ed64066/attachment.bin


More information about the Zope mailing list