On 16.Jun 2005 - 23:17:43, Jim Vine wrote:
> Specifically, I've been scratching my head for a while
> about how to handle a many-many relationship: a
> property owner may own more than one house;
> conversely, a house may have more than one co-owner -
> consequently it's not appropriate to have either
> containing the other. I've googled for general
> information about handling many-many relationships in
> OO, and most of what I've come across has only
> indicated that it can be tricky!

Hmm, what I would start with is an attribute for a house containing a
list of references to owners. And vice versa, each owner has a list of
references to houses. Now in Zope references could be implemented via
storing the URL of the house and references to Users could be stored via
the username (the one the user uses to log in). 

> While I?m on, I?ve noticed that Zope 3 has been
> released. Is this now the recommended development
> environment, or am I better off sticking with Zope 2
> for now, and porting my application once Zope 3 is a
> bit further down the line?

Read the archive, short answer is:

If you depend only on Zope, you don't want TTW and you want to write a
file based product: Zope3 would be possible

If you need some existing products or if you need TTW-Code, then you
have to stick to Zope2


You're ugly and your mother dresses you funny.
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to