<br><br><div class="gmail_quote">2008/7/10 luigi scarso &lt;<a href="mailto:luigi.scarso@gmail.com">luigi.scarso@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div>Forse meglio vedere<br>
</div></div><a href="http://plone.org/documentation/tutorial/borg/sending-and-handling-events/view?searchterm=at_post_create_script" target="_blank">http://plone.org/documentation/tutorial/borg/sending-and-handling-events/view?searchterm=at_post_create_script</a><br>


</blockquote></div><br></div>Si, il link giusto e&#39; questo:<br>questo <br>&quot;&quot;<br>Anyhow, IObjectModifiedEvent is a Zope event and Archetypes makes
several modifications throughout the initial creation of an AT object,
which is why it&#39;s called multiple times<br>&quot;&quot;<br>e questo e&#39; il punto chiave.<br>Ora con<br>&nbsp;&nbsp;&nbsp; &lt;subscriber <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for=&quot;..interfaces.ICatalogInstance<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Products.Archetypes.interfaces.IObjectInitializedEvent&quot;&nbsp;&nbsp;&nbsp; <br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; handler=&quot;.cataloginstance.eventCatalogInstanceInserted&quot; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&gt;<br><br>l&#39;handler viene chiamato una sola volta.<br>Ora vedo se leggo il file.<br></blockquote></div>(scusate per la sgrammatica di cui sopra)<br>
Si, leggo anche il file.<br>Per sicurezza meglio fare un seek per riportarsi all&#39;inizio, tipo<br>filexmlSrc_file.seek(0,0) .<br><br><br>-- <br>luigi<br>