Re: Object created events
Daniel Nouri <[email protected]> Wed, 27 Sep 2006 12:03:15 +0200
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Martin Aspeli wrote: > Hi guys, > > We discussed this but I don't think we came to a conclusion. Now, I've > discovered a real need for an object-created event that really fires > when the object is created. I also see a good reason to have an "object > initialised" event that fires when an object is first saved out of the > factory. > > Thus, I'd like to add the following: > > IObjectCreatedEvent > -- instance brought to life - fire from initializeArchetype() > > IObjectModifiedEvent > -- any and all changes - fire from processForm() when the creation flag > is False > > IObjectInitializedEvent > -- first change - subclass of IObjectModifiedEvent - fire from > processForm() when the creation flag is True > > The current implementation fires IObjectCreatedEvent on the first change > (where I'm proposing IObjectInitializedEvent) and IObjectModifiedEvent > on subsequent edits (I wouldn't change this). > > I can change this, if people agree. Also, this is on 1.4 branch and 1.5 > branch - should we change both? +1 for adding it to both 1.4 and 1.5 ~Daniel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV