[Zope] [ADVANCED] How do YOU guys do many-to-many in Zope without relational?

Thomas B. Passin tpassin@mitretek.org
Tue, 23 Oct 2001 12:39:31 -0400


[Steve Spicklemire]

> I have a third ZClass, "Enrollment" which has two properties:
> student_id and class_id. Now you can write a method:
> getStudentIdsForClass(class_id) or getClassIdsForStudent(student_Id).
> With ZPatterns you can easily map these methods on to "listish"
> properties of the Students/Classes.
>

Right, a relation table.  Exactly what you would do if you were using a
relational database.

Cheers,

Tom P