Re: Object created events

Martin Aspeli <[email protected]> Wed, 27 Sep 2006 06:28:12 -0700 (PDT)
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <[email protected]>
Hi Rocky,


Rocky Burt wrote:
> 
> We went ahead and removed the IObjectCreatedEvent call in AT and now it
> just fires IObjectModifiedEvent in all cases.
> 

Who and when and on which branch?



> The true tricky part here is to track down all the places where
> IObjectModifiedEvent should be called.  processForm is one obvious
> place, but Alec and I were discussing... what about edit/update() ?  And
> what about the other places I'm not thinking of.
> 

in-place editing...



> The reality is that none of these events should be fired within the
> content object itself (to maintain separation of concerns, etc) but
> since AT mixes the UI stuff into the content object so harshly we don't
> really have a choice.
> 

+1



>> I can change this, if people agree. Also, this is on 1.4 branch and 1.5 
>>   branch - should we change both?
> 
> Given what we have with AT right now, I believe these are good changes
> for 1.4.  With 1.5 I'd love to see more work done to separate out these
> UI bits so that the firing of events could happen outside of the content
> object.  But realizing that I don't have time to do this and probably no
> one else does... implementing the same changes to be done for 1.4 in 1.5
> would be the best compromise.
> 
> So... +1 on including changes in 1.4.  *If* we don't have time to
> separate out UI bits for 1.5, +1 for including changes in 1.5.
> Otherwise, we need to fix 1.5 UI bits ;)
> 

Since these changes are trivial, I'll do it on both branches for now, and
then any refactoring will just have a nice reminder that this code is there.

My personal guessis that Plone 3.5 will be the
let's-unify-our-content-type-story release - AT refactoring, tighter formlib
integration, a better/new transform engine, you know - all the fun stuff. ;)

Martin
-- 
View this message in context: http://www.nabble.com/Object-created-events-tf2341226.html#a6526701
Sent from the Archetypes - devel mailing list archive at Nabble.com.


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