[Zope] <dtml-tree> from within a product

Dieter Maurer dieter@handshake.de
Fri, 1 Feb 2002 20:47:38 +0100


chrisf writes:
 > dtml_method index_html
 > ....
 >    <dtml-tree  branches="display(param=url)">
 >    <dtml-var "getId()">
 >    </dtml-tree>
 > ...
 > python script
 > 
 > return (param.objectValues('Image'))
Two serious problems:

  1.  "branches" expects a method name not an expression.
      Use "branches_expr" when you want an expression

  2.  It is not very wise to generate a tree with a branches
      expression that is independent of its context.
      You will get an infinite (lazy) tree where each node has
      the same children.


Dieter