[Zope] dtml-tree: Passing parameters to branches-method

Dieter Maurer dieter at handshake.de
Sat Mar 19 14:05:44 EST 2005


Ulla Theiss wrote at 2005-3-19 11:07 +0100:
>how can I pass a parameter (namely the REQUEST-Object) to the 
>branches-method of
>dtml-tree?

You really should leave the complex "dtml-tree" and go for
"ZTUtils"...

>I tried the following:
>
><dtml-tree branches="getBranches(REQUEST)">

Usually, you can access "REQUEST" via acquisition (e.g. "self.REQUEST"
in a method or "REQUEST" in a DTML object or "request" in a ZPT).

No need to pass it explicitely.


-- 
Dieter


More information about the Zope mailing list