29 Mar
2002
29 Mar
'02
10:52 a.m.
Damon Eckhoff writes:
I'm working in a skin within CMF 1.2 and Zope 2.5.0...
I'm trying to clarify how to call a DTML Method with parameters from a python script. The docs I've read say to call it something like this:
result_string = context.myDTMLMethod( None, _, optionalkey1='yada' ) The doc's say something like "__call__(client=None,REQUEST={},Response=None,**kw)".
Probably, you should use: context.myDTMLMethod(context,context.REQUEST,optionalkey1=...) Please read "Calling DTML objects" in <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> for details. Dieter