[Zope] Getting aquisition values from object attribute

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 24 Mar 2003 11:04:26 +0000


On Monday 24 March 2003 11:01 am, Max M wrote:
> I have a product which has an object attribute that is an object. Just
> like HTMLFile() or similar.
>
> I need to get the aquisition values from the parent object. How on earth
> do I do that?
>
> Pseudocode

import Acquisition

class MyAttr(Acqusition.Implicit):
>
>     def title(self)
>         "I need to get ie. title value from 'MyProduct'"
>         return # ?????
>
>

class MyProduct(Acqusition.Implicit):
>
>     my_attr = MyAttr()
>

-- 
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson