[triangle-zpug] enable CMFPlone while creating a new zope instance?

Geoff Davis geoff at geoffdavis.net
Wed Feb 8 21:39:25 CET 2006

I believe that as of Zope 2.7, "zopectl run" can be used to run python
scripts that have access to the ZODB (the ZODB in question will be
pulled from your zope.conf file).  The ZODB root will be present as the
global variable "app".  It makes running external code on a ZODB pretty

On Wed, 2006-02-08 at 15:30 -0500, Ben Donnelly wrote:
> Newbie question here-
> I'm planning to run a whole bunch of separate Plone instances on the 
> same server.
> I'm trying to write a script to create new Plone instances on the fly- 
> but I'm stuck on how to get zope to automatically initialize a plone 
> site the first time it's run, rather than having to add plone through 
> the ZMI manually.
> Is this something I can append to the mkzopeinstance.py script, provided 
> I get the Plone files copied to the Products directory of the new zope 
> instance before the script completes?
> Or do I have to launch the zope instance, and add the Plone site 
> (defining it's name, etc) through the zope API. If so, I'm having 
> trouble figuring out how to script this- can anyone lead me to a basic 
> script with calls that manipulates the ZMI?
> Ben Donnelly
> Nicholas School of the Environment
> Duke University
> _______________________________________________
> triangle-zpug mailing list
> triangle-zpug at starship.python.net
> http://starship.python.net/mailman/listinfo/triangle-zpug

More information about the triangle-zpug mailing list