[Zope-dev] How to Access existing objects of It's own?
Victor.Zhai@ogilvy.com
Victor.Zhai@ogilvy.com
Wed, 10 Nov 1999 16:30:05 +0800
Hi:
I I have encountered a problerm that must be resolved right now.
One method of My Object want to change the existing object of it's
own.For example: In the container Object,each object in it has a attribute
name :Name: which has a original value,But later I want to change All the
Name of each object, Whick method can help.
I do it like this:
for id in self.objectItems():
o=getattr(self, id)
try:
o.sortflag = 'date_created' #I want to change all
object value: "sortflag".
except: pass
Thanks a lot in advance.
"WorldSecure Server <ogilvy.com>" made the following
annotations on 11/10/99 03:24:02
------------------------------------------------------------------------------
Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of the Ogilvy Group shall be understood as neither given nor endorsed by it.
==============================================================================