[Zope] dtml-var calling python script.

Dieter Maurer dieter@handshake.de
Mon, 10 Mar 2003 22:28:47 +0100


Pavel Zaitsev wrote at 2003-3-10 02:09 -0800:
 > I have a python script(pyfoo) that expects 2 parameters foo1 and foo2.
 > I'd like to invoke the script from a dtml code. 
 > 
 > So dtmlfoo is:
 > 
 > -----------------------------------
 > <dtml-var pyfoo>

When it expects parameters you should pass them!

     <dtml-var expr="pyfoo(arg1,arg2)">


The alternative (I do not recommend it!) would be to bind
the DTML namespace.


Dieter