[Zope] ZODB vs Relational Databases

Max M maxm@mxm.dk
Mon, 10 Mar 2003 16:07:08 +0100


Jeremy Cowgar wrote:

>Say for instance you have a class and students. Each student can belong to a 
>class....
>
>/class/math
>/class/history
>
>Those are the paths to the classes. Now in your student table, store that 
>path. That is the relation.
>

Or you could use the mxmRelation product, which does it for you 
automatically.
http://www.zope.org/Members/maxm/productList/mxmRelations

Create a folder called "relations" somewhere in you aq path, and pop in 
instances of the relations product.

You can give them meaningfull id's like "students_in_class", 
'"customers_in_companies" etc.

It is relatively easy to use. As far as I know it is used as the 
"philosophical basis" for relations in Zope 3.

regards Max M