__parent__ - like attribute?

Dylan Reinhardt python at dylanreinhardt.com
Sun Jan 19 17:40:19 EST 2003


At 02:13 PM 1/19/2003, Andrew Bennetts wrote:
>Judging from what you've said earlier, the most elegant way to solve your
>specific problem would be to have both Egg and Spam inherit from Persistent,
>and let them both manage their own _p_changed flags.  Then there is no need
>to pass parent references around, or other namespace tricks -- ZODB will
>take care of it for you.

What I want is a reference to the parent object... nothing more, nothing 
less.  I need my subobjects not only to set values in their parent, but to 
acquire values as well.

Looks like I'll be using ExtensionClass & Acquisition since exactly what it 
does.

Thanks for your help,

Dylan






More information about the Python-list mailing list