Re: [Zope3-Users] Autocreated content objects

2006-09-27 Thread Darryl Cousins
On Wed, 2006-09-27 at 11:13 +1000, John Maddison wrote: Ah, I think I may have misdescribed what I was trying to do - I'm not trying to replace the root object, I'm trying to automatically create some other objects to put inside it (without having to use the ZMI). Hi John, Maybe we are

Re: [Zope3-Users] Autocreated content objects

2006-09-27 Thread Fred Drake
On 9/27/06, Darryl Cousins [EMAIL PROTECTED] wrote: browser:menuItem menu=zmi_actions title=Add sample gallery for=zope.app.folder.interfaces.IFolder action=addSampleGallery.html permission=zope.ManageSite / The install method obviously does a lot more including

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread John Maddison
On 9/25/06, Stephan Richter [EMAIL PROTECTED] wrote: On Monday 25 September 2006 03:21, John Maddison wrote: Is it possible/wise to auto-create content objects in the ZODB? Say I'm creating a blog application and have a container type(BlogContainer) and want an instance called blog in the

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread Fred Drake
On 9/26/06, John Maddison [EMAIL PROTECTED] wrote: Right, that's basically what I want to run, but I can't seem to figure out how to have that run at ZODB creation time. Should I be listening for the event that Fred added (thanks!) and run that in the subscriber? There are a couple of ways to

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread John Maddison
Oops, forgot to CC the list. On 9/27/06, John Maddison [EMAIL PROTECTED] wrote: On 9/26/06, Fred Drake [EMAIL PROTECTED] wrote: On 9/26/06, John Maddison [EMAIL PROTECTED] wrote: Right, that's basically what I want to run, but I can't seem to figure out how to have that run at ZODB

Re: [Zope3-Users] Autocreated content objects

2006-09-25 Thread Darryl Cousins
Hi John, This may be what you are after: root['my-app'] = MyApp() Regards, Darryl On Mon, 2006-09-25 at 17:21 +1000, John Maddison wrote: Hi there, Is it possible/wise to auto-create content objects in the ZODB? Say I'm creating a blog application and have a container