2008/7/10 luigi scarso <[EMAIL PROTECTED]>:

> Forse meglio vedere
>>
>> http://plone.org/documentation/tutorial/borg/sending-and-handling-events/view?searchterm=at_post_create_script
>>
>
> Si, il link giusto e' questo:
> questo
> ""
> Anyhow, IObjectModifiedEvent is a Zope event and Archetypes makes several
> modifications throughout the initial creation of an AT object, which is why
> it's called multiple times
> ""
> e questo e' il punto chiave.
> Ora con
>     <subscriber
>         for="..interfaces.ICatalogInstance
>              Products.Archetypes.interfaces.IObjectInitializedEvent"
>         handler=".cataloginstance.eventCatalogInstanceInserted"
>       />
>
> l'handler viene chiamato una sola volta.
> Ora vedo se leggo il file.
>
(scusate per la sgrammatica di cui sopra)
Si, leggo anche il file.
Per sicurezza meglio fare un seek per riportarsi all'inizio, tipo
filexmlSrc_file.seek(0,0) .


-- 
luigi
_______________________________________________
Plone-IT mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html

Rispondere a