Skip to content

Commit

Permalink
Prototype (and probably a little buggy) patch to make it easier to ru…
Browse files Browse the repository at this point in the history
…n zope

without a ZODB.

This patch is really just to show the design decisions, a lot of work will
follow if there is some consensus that these decisions are correct.

The design decisions are:

* Start moving ZODB specific stuff to a zope.app.zodb package.
* The publication object gets a IRsourceFactory implementing object as it's
  first argument (idea stolen from zope.bobo).
* The server startup scripts look for a utility implementing
  IApplicationFactory.

The goal is to reduce the steps necessary to run zope without the ZODB to:

* Implement and register an IApplicationFactory utility
* Remove the <zodb> section from zope.conf
  • Loading branch information
Brian Sutherland committed Apr 5, 2007
0 parents commit bd3a627
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions configure.zcml
@@ -0,0 +1,86 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:i18n="http://namespaces.zope.org/i18n"
i18n_domain="zope"
>

<!-- Meta configuration (new directives) -->
<include file="meta.zcml" />

<!-- Note that we need to do this early, as later startup
subscribers may break without fixups -->

<include package="zope.app.component" />

<include package="zope.app.generations" file="subscriber.zcml" />

<!-- Ordinary Application (non-view) configuration) -->
<include package="zope.app.interface" />
<include package="zope.app.security" />
<include package="zope.component" />
<include package="zope.annotation" />
<include package="zope.app.dependable" />
<include package="zope.app.content" />
<include package="zope.publisher" />

<include file="menus.zcml" />

<include package="zope.copypastemove" />
<include package="zope.size" />
<include package="zope.location" />
<include package="zope.app.container" />

<include package="zope.app.publisher" />

<include package="zope.app.publication" file="meta.zcml" />
<include package="zope.app.publication" />


<include package="zope.traversing" />
<include package="zope.app.pagetemplate" />
<include package="zope.app.generations" />
<include package="zope.app.zodb" />
<include package="zope.app.zapi" />

<!-- Views -->
<include package="zope.app.http" />

<!-- Translations -->
<configure package="zope.app.locales">
<i18n:registerTranslations directory="." />
</configure>

<include package="zope.app.i18n" />

<!-- Database boostrapping and maintanance -->
<include package="zope.app.appsetup" />
<include package="zope.app.zopeappgenerations" />

<!-- Services -->
<include package="zope.app.principalannotation" />

<!-- Utilities -->
<include package="zope.app.error" />

<!-- Broken-object support -->
<include package="zope.app.broken" />

<!-- Skins -->

<include package="zope.app.basicskin" />
<include package="zope.app.rotterdam" />

<!-- Additional packages -->

<include package="zope.app.applicationcontrol" />
<include package="zope.dublincore" />
<include package="zope.app.wsgi" />


<!-- Content types -->
<include package="zope.app.folder" />

<!-- Browser Configurations -->
<include file="browser.zcml" />

</configure>

0 comments on commit bd3a627

Please sign in to comment.