[Zope-dev] Lists of Objects

Ender kthangavelu@earthlink.net
Thu, 19 Oct 2000 13:35:55 -0700


please don't post html to this zope mailing lists, many people aren't
using html email readers


> Jack Fitzgerald wrote:
> 
> Hello,
>  I am currently keeping a list of objects sorted in a particular
> object. I am wondering if
> anyone has an opinion about whether I should keep just the 'id' in
> this list or if it is ok
> to actually keep a reference to the object in the list. When I use the
> list at a later point in time
> I will need to access several attributes of the object. If I keep the
> 'id' I would have to find the object
> for each entry in the list. Thanks in advance for any opinions.
> 
> -Jack Fitzgerald

depending on your application you could just do it the way zcatalog does
it and store the url and resolve the url to an object when you want to
access attributes.

kapil