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