[Zope] call zpt methods in dtml

Dieter Maurer dieter@handshake.de
Fri, 20 Jun 2003 20:23:41 +0200


nagendra prasad wrote at 2003-6-19 07:04 +0100:
 > ...
 > **<dtml-call "instobj.manage_addProperty('startdate',
 > startdate, 'string')">**
 > ...
 > Now the line that is marked with * is replaced by 
 > <dtml-var expr="myZPtemplate(startdate)">
 > Now when i run the zpt file & click submit(reaches the
 > dtml file correctly) but still 
 > Error Type
 > NameError
 > Error Value
 > name 'startdate' is not defined

Look at the traceback (--> "/error_log", when you use Zope 2.6.x).
It will tell you where "startdate" is unknown.

Note that arguments passed into ZPTs are not available directly
but indirectly via "options". Read the Zope Book (2.6 edition)
if you need details.



Dieter