Passing namespace in DTML Method calles...
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
----- Original Message ----- From: Johan Carlsson <johanc@torped.se> To: <zope@zope.org> Sent: Thursday, November 04, 1999 9:19 AM Subject: [Zope] Passing namespace in DTML Method calles...
<dtml-var expr="aquiered_dtml_method(var-name='var-value')">
<dtml-var expr="aquiered_dtml_method(_.None, _, var-name='var-value')"> This will set up the namespace (and this makes REQUEST available as well) Kevin
<dtml-var expr="aquiered_dtml_method(var-name='var-value')">
<dtml-var expr="aquiered_dtml_method(_.None, _, var-name='var-value')">
This will set up the namespace (and this makes REQUEST available as well)
Thanks a million Kevin!!! Gone try "omedelbart bums"... //johanc
participants (2)
-
Johan Carlsson -
Kevin Dangoor