[Zope] passing a parameter - namespace and dtml-with

John Eikenberry jae-zope at kavi.com
Tue Aug 30 12:25:21 EDT 2005


Peter Bengtsson wrote:

> Better
> 
> <dtml-let orig_title="'Hannoverian Stallions Lauries Crusador ' ">
> <dtml-with links>
> <dtml-var "catagory_results(_, _.None, title1=orig_title)">
> </dtml-with>
> </dml-let>
> 
> Use dtml-let and notice the extra _ in the parameters. I doubt that
> DTML methods accept plain arguments except self, REQUEST and RESPONSE.
> All other things must be passed with keyword arguments.
 
Opps. Yes. dtml-let is what you should use. Been awhile since I've done to
much with dtml.

-- 

John Eikenberry [jae at kavi.com]
______________________________________________________________
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
                                          --B. Franklin


More information about the Zope mailing list