[Zope] iterating through ids and getting their properties

Dieter Maurer dieter@handshake.de
Fri, 29 Sep 2000 23:51:09 +0200 (CEST)


Aaron Payne writes:
 > I have a list of ids which correspond to instances in a folder.  I want to 
 > iterate through the list and display their properties.
 > I get an attribute error when rendering the page.
 > 
 > <dtml-in pendlist>
 > <dtml-call "REQUEST.set('theContainer', _.getattr(transactionInstances, 
 > _['sequence-item']))">
 > ....
 > Error Type: AttributeError
 > Error Value:

Your "pendlist" contains an element that is *NOT* an id in
"transactionInstances". It is the empty string (or consists only
of spaces). That is why your "Error Value" does not show
anything.


Dieter