Hi, At 19:14 Uhr +0800 12.02.2000, Sin Hang Kin wrote:
I am making a web with bibliographic catalogues. I have the person objects which is referred by the bibliographic objects in various places : author, editor, subject etc. I have made a zclass for person which simply have their name, title, birth, etc. I intent to place them all in a folder say : authors
I wish to implement the bibliographic record as zclass, but I do not known how to let refer to the person object in this zclass.
Rgs Kent Sin
I am struggling with the same problem, coming from a relational background... This screams for some sort of easy relation, but I don't know how to express that in OO. I talked about the subject with a friend of mine who's programmer, but has no knowledge of python or Zope. He said it might be the easiest way to relate the objects with a procedural aspect. So do not use the Objects to relate but build a little method that does it. Your book instance could basically know what authors were involved writing it, you could get the IDs out of the book-instance and further on work with the correpsonding author instances. I am still on my (early) way to learning python and Zope so I am most interested if there's a better way to express this I am trying this on Cocktails and ingriedients and the contained amount. After I have build up a sum of cocktails I would like to know what cocktails could I do with the bottles I have around - this is a question easily handled by a RDBMS, but how OO? Jochen