[Zope3-Users] Application instantiation without ZMI
Brian Sutherland
jinty at web.de
Mon Jun 18 07:36:25 EDT 2007
On Mon, Jun 18, 2007 at 07:57:10PM +1000, John Maddison wrote:
> Hi all,
>
> I've just started playing around with using z3c.layer to create
> applications that don't use the ZMI at all. Everything is pretty
> simple so far, except for one fairly important step: creating my
> initial application object in the ZODB. What methods do people use to
> create their application root objects (aside from the ZMI)?
>
> Off the top of my head, I can think of a few ways:
> * Special BrowserPage (named, e.g. 'install-app') that creates the
> application object and puts it in /
> * Listening for the ZODB open event and creating/inserting the
> application object from the handler
This is the most common way I've seen (schooltool, zope3).
> * weird ZODB root object adapter
There's also another one:
* Have the publisher create an object for each request and serve that object
as the root object.
>
> Is there a "right" or intended way to do this, or is it much of a muchness?
>
> Thanks for your thoughts!
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
--
Brian Sutherland
More information about the Zope3-users
mailing list