RE: [Zope] call DTMLMethod with parameter from Python
29 Mar
2002
29 Mar
'02
4:30 p.m.
Thanks so much... The details are what I wanted to know. I am now more enlightened. Damon.
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
8774
Age (days ago)
8774
Last active (days ago)
0 comments
1 participants
participants (1)
-
Eckhoff, Damon