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.<br>
<br>Thanks,<br>A<br><br><div class="gmail_quote">On Tue, Sep 29, 2009 at 11:27 AM, Andreas Jung <span dir="ltr">&lt;<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am 29.09.09 07:55, schrieb Ajay Deshpande:<br>
<div class="im">&gt; Hi All:<br>
&gt;<br>
&gt; I would like to access a certain property of an object from the<br>
&gt; __init__.py of my Products folder. Is this possible?<br>
</div>What is the usecase?<br>
<br>
The initialize() method of the Product code get the &#39;context&#39; parameter<br>
during the startup phase.<br>
Not sure that you are able to proceed from that.<br>
<font color="#888888"><br>
-aj<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>&quot;And the trees are all kept equal<br>By hatchet, axe, and saw&quot;<br>