[Zope] calling a DTML method with arg
Dieter Maurer
dieter@handshake.de
Thu, 14 Feb 2002 22:26:39 +0100
John Hunter writes:
> ... DTML object "listPatient" ...
> <dtml-call expr="listPatient( 'pid=%s' % <dtml-var pid>)" >
You already have been told to use "pid" rather than "<dtml-var pid>".
Please also read the section "Calling DTML objects" in
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Otherwise, I expect, you will get "NameError" or "KeyError" exceptions
from "listPatient" because called the way it is above, it has
not context and cannot find surrounding Zope objects...
Dieter