[Zope] [ADVANCED] How do YOU guys do many-to-many in Zope without relational?
Steve Spicklemire
steve@spvi.com
Mon, 22 Oct 2001 17:29:57 -0500
Hi Max,
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.
-steve
On Monday, October 22, 2001, at 02:44 PM, Max M wrote:
> I am in the situation where I have to do what corresponds to a
> many-to-many
> relation in Zope.
>
> I basically have two zClassses. students and subjects. There can be many
> subjects, and in any subject there can be any number of students.
>
>