[Zope3-dev] I've updated the proposal on using parent references
rather than context wrappers
Jim Fulton
jim at zope.com
Wed Aug 13 06:31:27 EDT 2003
Phillip J. Eby wrote:
> At 05:18 PM 8/12/03 -0400, Jim Fulton wrote:
>
>> It's now in the Wiki at:
>>
>> http://dev.zope.org/Zope3/ParentGeddon.
>>
>> Comments are still welcomed.
>
>
> In the proposal, you say that "you can't create a mapping in which the
> identity of an object is used as a key, because an object's identity
> isn't constant." Do you mean to say that a persistent object's
> in-memory 'id()' is not constant?
Right, and neither is a non-persistent object's, accross runs. :)
It is temptin to use a persistent object's _p_oid (or some variation
of it), but that has two disadvantages:
- It requires persistense,
- the _p_oid isn't retained accross export/import operations. Perhaos
I shouldn't worry about this, but I do. I imagine a situation where
objects are archived and then restored.
These might be overcomable.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (703) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list