17 Jun
2005
17 Jun
'05
6:32 p.m.
Am Freitag, den 17.06.2005, 19:09 +0200 schrieb Dieter Maurer:
Tino Wildenhain wrote at 2005-6-17 10:57 +0200:
... Not at all. You could either have tried it out ;) Or looked at the DTML documentation in the Zope book *wink* ;)
<dtml-var expr="somemethod(parm1=value1,parm2=value2)">
Be warned: this is likely to cause loss of the namespace. Do not forget to pass the two positional arguments (usually as "None, _"). They are essential.
For more details, read "Calling DTML Objects" of
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Thanks Dieter, I must confess I was just too lazy to show all the pitfalls, assuming John takes the hint and reads the docs again *wink* ;)