[Zope3-Users] Containers and ZODB

Drew Smathers drew.smathers at gmail.com
Fri Aug 24 14:51:14 EDT 2007


I'm new to zope3 and have been writing an application backed by a
relational database.  I wanted to created a IContainer implementation
which essential provides a view of items in the database, but there is
no need for to make the container instances manageable through the ZMI
or persistent in either ZODB or through the ORM layer (incidentally,
I'm using Storm).

To paraphase how the application works, I have something like:

class FooBarContainer(MyContainerImplementation):
  containedQuery = "select * from foobars"

The implementation is slightly more complex, but really doesn't
matter.  I just want the container to exist at runtime, without any
knowledge of it in ZODB.  Nor do I want someone to have to explicitly
add containers through the ZMI, since the containers I'm defining are
inherently part of the application.  Does anyone have any suggestions
on a good way to achieve this?

-- 
d.p.s


More information about the Zope3-users mailing list