[Zope-dev] Lists of Objects

2000-10-19 Thread Jack Fitzgerald



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


Re: [Zope-dev] Lists of Objects

2000-10-19 Thread Ender


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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )