[Zope] Accessing object properties from __init__.py

Andrew Milton akm at theinternet.com.au
Tue Sep 29 02:00:59 EDT 2009


+-------[ 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

>From any other code you're probably out of luck.

-- 
Andrew Milton
akm at theinternet.com.au


More information about the Zope mailing list