[Zope-Coders] Re: [ZC] 398/ 1 Request "getPhysicalPath/Acquisition bug when referencing object from different context"
Robert Thomson
ctbomm652@rmt.flow.com.au
Mon, 20 May 2002 19:15:10 +1000
Problem fixed, my bad. My "bug" can be closed.
http://www.zope.org/Members/ctbomm/AcquisitionGotcha for a description
of what I did wrong. *hugs aq_chain*
Cheers,
Rob.
On Mon, May 20, 2002 at 03:27:02AM -0400, Collector: Zope Bugs, Features, and Patches ... uttered:
> Issue #398 Update (Request) "getPhysicalPath/Acquisition bug when referencing object from different context"
> Status Pending, Zope/bug medium
> To followup, visit:
> http://collector.zope.org/Zope/398
>
> ==============================================================
> = Request - Entry #1 by Anonymous User on May 20, 2002 3:27 am
>
> When calling getPhysicalPath on a Zope object when in a different context (eg. further up the hierarchy), it returns incorrect values. This affects absolute_url() as-well.
>
> I did try to upload a file with examples, but permission errors in the bug collector. Here's a paste of them, though. Try http://rmt.dyndns.org/zopebug.txt also.
> More output:
>
> [/private/ipdb]$ call FindRange('202.129.64.4/30').getPhysicalPath()
> ('202.129.64.4_30', '202.129.64.0_18', '202.129.64.4_30')
>
> [/private/ipdb]$ call FindRange('202.129.64.0/18').getPhysicalPath()
> ('202.129.64.0_18', 'ipdb', '202.129.64.0_18')
>
> [/private/ipdb]$ call FindRange('202.129.64.0/18')
> 202.129.64.0/18
>
> [/private/ipdb]$ call FindRange('202.129.64.4/30')
> 202.129.64.4/30
>
> [/private/ipdb]$ call FindRange('202.129.64.4/30').aq_parent
> 0.0.0.0/0
> # huh? This should return 202.129.64.0/18
>
> [/private/ipdb/202.129.64.0_18/202.129.64.4_30]$ call aq_parent
> 202.129.64.0/18
> # like this!
>
> [/private/ipdb/202.129.64.0_18]$ call FindRange('202.129.64.4/30').aq_parent
> 202.129.64.0/18
> # or this!
>
> [/private/ipdb]$ call FindRange('202.129.64.4/30').aq_parent.getPhysicalPath()
> ('', 'private', 'ipdb')
>
> [/private/ipdb]$ call FindRange('202.129.64.0/18').getPhysicalPath()
> ('202.129.64.0_18', 'ipdb', '202.129.64.0_18')
>
> ==============================================================
>
>
--
The Americans spent $500,000 developing a pen that would work in a
weightless environment. The Russians used a pencil.