[Zope] Learning Python Syntax for Zope Objects and DTML Operations
Dieter Maurer
dieter@handshake.de
Sun, 5 May 2002 22:14:19 +0200
Dan Shafer writes:
> ....
> If I have a collection of DTML Methods in
> ....
> But I can't figure out how to reference the objects, let
> alone iterate over them.
Please read about "Bindings" in the Python Script documentation.
This will tell you how to access the objects.
Please look into the Python Language Reference (or an elementary
Python book) for "for" to learn about iteration in Python.
Your solution will somehow look like:
for o in context.objectValues(['DTML Method']):
# do something with your object
Dieter