skip to navigation
skip to content

cromlech.zodb 0.3.1

Cromlech Web Framework utility methods and components for application using the ZODB

Downloads ↓

cromlech.zodb provides utility methods and components for application built upon the cromlech stack and using the ZODB.

declare application with entry points

cromlech.zodb contains a utility to help initialize application based on entry_points provided by packages.

ZODB Context Manager

The zodb context manager gives you a handle on an application stored in a database.


The package provide a PossibleSite class to be used as a mixin for your applications root objects:

>>> from cromlech.zodb.components import PossibleSite
>>> from zope.component.interfaces import IPossibleSite
>>> from zope.interface.verify import verifyObject

>>> site = PossibleSite()
>>> verifyObject(IPossibleSite, site)

This is a possible site, not yet a site:

>>> from zope.component.interfaces import ISite
>>> ISite.providedBy(site)

We can set up a local site manager:

>>> from cromlech.zodb.components import LocalSiteManager
>>> from cromlech.zodb.interfaces import ILocalSiteManager

>>> lsm = LocalSiteManager(site)
>>> verifyObject(ILocalSiteManager, lsm)

A Possible site with a local site manager becomes an ISite:

>>> from zope.component.interfaces import ISite
>>> ISite.providedBy(site)


0.3.1 (2012-11-16)

  • fix on middleware, which was not iterating whole response

0.3 (2012-05-05)

  • General overhaul of the package, in order to provide better isolated components. For that matter, some of the context managers are now doing less, but they are more reusable.

    This change is NOT backward compatible. Update your applications.

0.2.2 (2012-04-15)

  • Removed unfortunate print in the transaction wrapper.

0.2.1 (2012-01-27)

  • Added LocalSiteManager initialization to the application initializer, if the application is an IPossibleSite but not and ISite.

0.2 (2012-01-26)

  • Cleaned up application initializer.

0.2a1 (2012-01-10)

  • No longer rely on zc.zodbwsgi to provide a connection. Instead, we provide a set of methods and controllers to handle the connection, including transactions or not.

0.1a3 (2011-08-24)

  • Restaured transaction with the proper syntax for python2.7+.

0.1a2 (2011-08-24)

  • Removed unneeded transaction and print in the ZODB init.


  • Initial release
  • components to replace
  • initialize_applications taken from defunct cromlech.wsgi
File Type Py Version Uploaded on Size # downloads
cromlech.zodb-0.3.1.tar.gz (md5) Source 2012-11-16 12KB 0