Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

collective.recipe.zope2wsgi is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
 
Links
License
ZPL

Detailed Documentation

This recipe use plone.recipe.zope2instance and plone.recipe.zope2zeoserver to generate config files and instances for Zope2 instances / zeo server using repoze.zope2

This mean that you intances are wsgi applications served by PasteDeploy.

WSGI Instance

Recipe options are the same than plone.recipe.zope2instance.

The default logging config is override to log to STDERR instead of standard log files. You can change this by setting event-log-custom and access-log-custom options.

We'll start by creating a buildout that uses the recipe:

>>> write('buildout.cfg',

System Message: ERROR/3 (<string>, line 27)

Inconsistent literal block quoting.

... """ ... [buildout] ... parts = instance ... extends = ... http://dist.plone.org/release/3.3/versions.cfg ... http://download.zope.org/zope3.4/3.4.0/versions.cfg ... find-links = ... http://dist.repoze.org/zope2/2.10/ ... versions = versions ... ... [instance] ... recipe = collective.recipe.zope2wsgi ... user = admin:admin ... """)

Running the buildout gives us:

>>> print 'start', system(buildout)

System Message: ERROR/3 (<string>, line 45)

Inconsistent literal block quoting.

start Installing instance. Generated config file '/sample-buildout/instance.ini' Generated script '/sample-buildout/bin/instance'. Generated script '/sample-buildout/bin/instance.wsgi'.

Then you just need to run:

$ bin/instance serve

This will launch the application with Paste with the generated instance.ini file.

You can also use mod_wsgi with the instance.wsgi script (this is not tested but should work).

Using ZEO

Recipe options are the same than plone.recipe.zope2zeoserver.

We'll start by creating a buildout that uses the recipe:

>>> write('buildout.cfg',

System Message: ERROR/3 (<string>, line 69)

Inconsistent literal block quoting.

... """ ... [buildout] ... parts = zeo instance ... extends = ... http://dist.plone.org/release/3.3/versions.cfg ... http://download.zope.org/zope3.4/3.4.0/versions.cfg ... find-links = ... http://dist.repoze.org/zope2/2.10/ ... versions = versions ... ... [zeo] ... recipe = collective.recipe.zope2wsgi:zeo ... ... [instance] ... recipe = collective.recipe.zope2wsgi ... user = admin:admin ... zeo-client = on ... """)

Running the buildout gives us:

>>> print 'start', system(buildout)

System Message: ERROR/3 (<string>, line 91)

Inconsistent literal block quoting.

start ... Installing zeo. Created directory /sample-buildout/parts/zeo ... Generated script '/sample-buildout/bin/zeo'. Generated script '/sample-buildout/bin/zeopack'. Installing instance. Generated script '/sample-buildout/bin/instance'. Generated script '/sample-buildout/bin/instance.wsgi'.

Then you just need to run:

$ bin/zeo start
$ bin/instance serve --daemon

Change history

0.1 (2009-09-04)
  • Initial release

System Message: WARNING/2 (<string>, line 123)

Bullet list ends without a blank line; unexpected unindent.

[gawel]

Subscribe to package updates

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.