Skip to main content

This recipe creates and configures a Zope 2 instance in parts. It also installs a control script, which is like zopectl, in the bin/ directory. The name of the control script is the the name of the part in buildout.

You can use it with a part like this:

[instance]
recipe = plone.recipe.zope2instance
zope2-location = /path/to/zope2/install
user = admin:admin
http-address = 8080
eggs = ${buildout:eggs} my.package
products = ${buildout:directory}/products
zcml = my.package

The available options are:

zope2-location

The path where Zope 2 is installed. If you are also using the plone.recipe.zope2install recipe, and you have that configured as a part called ‘zope2’ prior to the zope2instance part, you can use ${zope2:location} for this parameter.

zope-conf

A relative or absolute path to a zope.conf file. If this is not given, a zope.conf will be generated based on the the options below.

repozo

The path to the repozo.py backup script. A wrapper for this will be generated in bin/repozo, which sets up the appropriate environment for running this. Defaults to “${zope2-location}/utilities/ZODBTools/repozo.py”. Set this to an empty value if you do not want this script to be generated.

The following options all affect the generated zope.conf.

products

A list of paths where Zope 2 products are installed. The first path takes precedence in case the same product is found in more than one directory.

zcml

Install ZCML slugs for the packages listed, separated by whitespace.

debug-mode

Set to ‘on’ to turn on debug mode in Zope. Defaults to ‘off’.

verbose-security

Set to ‘on’ to turn on verbose security (and switch to the Python security implementation). Defaults to ‘off’ (and the C security implementation).

effective-user

The name of the effective user for the Zope process. Defaults to not setting an effective user.

http-address

Give a port for the HTTP server. Defaults to 8080.

event-log

The filename of the event log. Defaults to var/log/${partname}.log

z2-log

The filename for the Z2 access log. Defaults to var/log/${partname}-Z2.log.

file-storage

The filename where the ZODB data file will be stored. Defaults to var/filestorage/Data.fs.

zeo-client

Set to ‘on’ to make this instance a ZEO client. In this case, setting the zeo-address option is required, and the file-storage option has no effect. To set up a ZEO server, you can use the plone.recipe.zope2zeoserver recipe. Defaults to ‘off’.

zeo-address

Set the address of the ZEO server. Defaults to 8100.

zodb-cache-size

Set the ZODB cache size, i.e. the number of objects which the ZODB cache will try to hold. This is currently only set for ZEO storages. Defaults to 2000.

zeo-client-cache-size

Set the size of the ZEO client cache. Defaults to ‘30MB’.

zope-conf-additional

Give additional lines to zope.conf. Make sure you indent any lines aftter the one with the parameter.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plone.recipe.zope2instance-0.6.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plone.recipe.zope2instance-0.6-py2.4.egg (19.4 kB view details)

Uploaded Egg

File details

Details for the file plone.recipe.zope2instance-0.6.tar.gz.

File metadata

File hashes

Hashes for plone.recipe.zope2instance-0.6.tar.gz
Algorithm Hash digest
SHA256 8cf1ab278967dee0165e037c31d8049d4344a2da5f56bb6748ae9d4d78bc11c3
MD5 0e0ed1cf64ebd6ca343958ac896fb21f
BLAKE2b-256 b5059a0f34a357822b2c8f0944bb8c67d53689443b640510baa99880ecd8e9a7

See more details on using hashes here.

File details

Details for the file plone.recipe.zope2instance-0.6-py2.4.egg.

File metadata

File hashes

Hashes for plone.recipe.zope2instance-0.6-py2.4.egg
Algorithm Hash digest
SHA256 ab603b7511d8ecb6129bc92e87b077a7d3b4a25f1c25f2a7459ff49ab6c2aa9c
MD5 2cb69474b3402a40af23db0cff054703
BLAKE2b-256 e5d167a988e447a12e795aabb8bfab8aac8fa8d26a149ae9ddced220ad107f0a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page