[Zope] Accessing object properties from __init__.py

2009-09-28 Thread Ajay Deshpande
Hi All: I would like to access a certain property of an object from the __init__.py of my Products folder. Is this possible? TIA, A -- "And the trees are all kept equal By hatchet, axe, and saw" ___ Zope maillist - Zope@zope.org https://mail.zope.or

Re: [Zope] Accessing object properties from __init__.py

2009-09-28 Thread Andreas Jung
Am 29.09.09 07:55, schrieb Ajay Deshpande: > Hi All: > > I would like to access a certain property of an object from the > __init__.py of my Products folder. Is this possible? What is the usecase? The initialize() method of the Product code get the 'context' parameter during the startup phase. Not

Re: [Zope] Accessing object properties from __init__.py

2009-09-28 Thread Andrew Milton
+---[ Ajay Deshpande ]-- | Hi All: | | I would like to access a certain property of an object from the __init__.py of | my Products folder. Is this possible? To get to it from inside Product code you can import the object from Products.MyProduct import SomeExportedObject

Re: [Zope] Accessing object properties from __init__.py

2009-09-28 Thread Ajay Deshpande
That is correct. I need to access object properties. Thanks, A On Tue, Sep 29, 2009 at 11:33 AM, wrote: > Am 29.09.09 08:00, schrieb Andrew Milton: > > +---[ Ajay Deshpande ]-- > > | Hi All: > > | > > | I would like to access a certain property of an object from the > __

Re: [Zope] Accessing object properties from __init__.py

2009-09-28 Thread Ajay Deshpande
I need to be able to read a data structure from a file and use it in another product. But the FS path of this file has to be a property. And I need to do the reading just once, which is why I want to do it in __init__.py. Thanks, A On Tue, Sep 29, 2009 at 11:27 AM, Andreas Jung wrote: > Am 29.0

Re: [Zope] Accessing object properties from __init__.py

2009-09-28 Thread Andreas Jung
Am 29.09.09 08:25, schrieb Ajay Deshpande: > I need to be able to read a data structure from a file and use it in > another product. But the FS path of this file has to be a property. > And I need to do the reading just once, which is why I want to do it > in __init__.py. Proceed as described. -a