[Zope3-dev] zope3 instance with no zodb
Jim Fulton
jim at zope.com
Sat Dec 2 08:55:05 EST 2006
On Dec 2, 2006, at 4:30 AM, Chris Withers wrote:
> Hi All,
>
> I remember Shane asking this a while ago and seem to remember the
> answer was "no", but I'm hoping that's changed.
>
> Is it possible to have a Zope 3 instance that has no zodb backing
> at all?
Yes, of course.
> I've been mocking up an app, currently in Zope 2, and have ended up
> using PostGresSQL as the data store (haven't done an rdb app in
> ages, foreign key constraints are nice, etc) and it occurred to me
> that with sqlalchemy, zsqlalchemy and some views that I don't
> actually need a zodb.
>
> Is this possible?
Yes. You have to configure an alternate publication object. Launchpad
does this. The publication object plugs in to the publisher and, among
other things, controls object traversal. The default publisher uses a
database object as a starting point for traversal. An alternate
publisher
could use something else, including allowing multiple "root" objects.
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-dev
mailing list