[Zope] Object as subobject
Dan L. Pierson
dan@sol.control.com
Mon, 14 Feb 2000 12:46:20 -0500 (EST)
Sin Hang Kin writes:
> 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.
I've been kludging this by storing the id of the subobject the parent,
then looking up the subobject when needed (usually in a ZCatalog --
the subobject has a known metatype). This works pretty well, but a
cleaner solution for inter-object references would be nice.
Dan Pierson, <dan@control.com>