[Zope] Passing namespace in DTML Method calles...

Johan Carlsson johanc@torped.se
Thu, 4 Nov 1999 15:19:56 +0100


Here we go again.

I would like to compress the following DTML code (example 1):

<dtml-call "REQUEST.set('var-name','var-value')">
<dtml-var name="aquiered_dtml_method"> # aquiered_dtml_method takes
'var-name' as an argument

to (example 2):

<dtml-var expr="aquiered_dtml_method(var-name='var-value')">


To pass REQUEST variable I only have to include the REQUEST object (example
3):

<dtml-var expr="aquiered_dtml_method(var-name='var-value',REQUEST=REQUEST)">


But how can I pass the rest of the namespace (acquisition and all)
so that example 2 works exactly as example 1.

Regards,
Johan Carlsson