[Zope-dev] Lists of Objects
Jack Fitzgerald
jfitzge3@rochester.rr.com
Thu, 19 Oct 2000 19:33:37 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_0031_01C03A03.7A1CE200
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
I am currently keeping a list of objects sorted in a particular object. =
I am wondering if=20
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=20
for each entry in the list. Thanks in advance for any opinions.
-Jack Fitzgerald
------=_NextPart_000_0031_01C03A03.7A1CE200
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3019.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> I am currently keeping a list of =
objects=20
sorted in a particular object. I am wondering if </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>anyone has an opinion about whether I =
should keep=20
just the 'id' in this list or if it is ok</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>to actually keep a reference to the =
object in the=20
list. When I use the list at a later point in time</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I will need to access several =
attributes of the=20
object. If I keep the 'id' I would have to find the object </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for each entry in the list. Thanks in =
advance for=20
any opinions.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-Jack =
Fitzgerald</FONT></DIV></BODY></HTML>
------=_NextPart_000_0031_01C03A03.7A1CE200--