[Zope] AttributeError in python script

Dieter Maurer dieter@handshake.de
Sat, 26 Jan 2002 21:52:43 +0100


Trevor Toenjes writes:
Apparently, you must be more careful, when you describe problems.
I already replied to an almost identical problem report, just
with a small but essential difference...

 > ##parameters=myFolder, myObjectType
 > results=[]
 > for object in container.myFolder.objectValues(myObjectType):
	         getattr(container,myFolder)

This is called "Computed Attribute Access".
You (and others) use it whenever an attribute it either not constant
or not a (Python) name...

More info in

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>



Dieter