broken rename after creation due to initializeArchetype tweak

Tom Lazar lists at tomster.org
Mon Oct 1 10:49:48 UTC 2007


david, thanks for sharing that -- i'll be needing this shortly and  
you just saved me some googling ;-)

cheers,

tom

On 28.09.2007, at 04:15, David Bain wrote:

> Okay... events rock! woo-hoo!
>
> I got the meeting rename after creation back by getting rid of my  
> initializeArchetype code and using my product's configure.zcml and  
> a custom factory.
>
> 1. I removed the whole initializeArchetype thing
> 2. moved that code into a method called  
> 'createMeetingCollectionsAfterCreation'
> 3. added a subscriber directive in my configure.zcml which  
> "listens" for an ObjectAddedEvent
>
> Something like this:
>
> <subscriber
>               for="Products.meeting.interfaces.meeting.IMeeting
>                    zope.app.container.interfaces.IObjectAddedEvent"
>                
> factory="Products.meeting.content.meeting.createMeetingCollectionsAfte 
> rCreation"
>               />
>
> I found this page to be the most helpful: http://plone.org/ 
> documentation/tutorial/five-zope3-walkthrough/events
>
> Thanks to all the people on the product-developers list :)
>
>
> so I'm slowly ticking off the checklist, browser views, events,  
> viewlets.
>
> I've included all the details above in case someone has a similar  
> problem and is googling it :)
>
> On 9/27/07, Martin Aspeli <optilude at gmx.net> wrote:
>
>
> David Bain wrote:
> >
> > ObjectAdded Event?
> > Sounds like the whole events, utilties, adapters thing is coming  
> to bite
> > me... again
> > I've been moving slowly to the new paradigm, starting with  
> browser views.
> >
> > Do you have a quick example? It would really help.
> >
>
> Try the b-org tutorial on plone.org, or my book[1]. You may be  
> interested in
> the book anyway, since it will definitely bite you with the "new  
> paradigm",
> and hopefully make it a bit less scary along the way. ;-)
>
> Martin
>
> [1] http://www.packtpub.com/Professional-Plone-web-applications-CMS/ 
> book
> --
> View this message in context: http://www.nabble.com/broken-rename- 
> after-creation-due-to-initializeArchetype-tweak- 
> tf4528693s20094.html#a12923901
> Sent from the Product Developers mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers





More information about the Product-Developers mailing list