[Zope] extra parameters in dtml-var
Dylan Reinhardt
Dylan@DylanReinhardt.com
Sat, 19 Oct 2002 14:31:26 -0700
At 08:18 PM 10/19/2002 +0200, you wrote:
>I have searched the internet and the maillinglist, but haven't found any
>answer. Why is it not possible to pass extra parameters to the called
>script with <dtml-var ...> in the following way:
Perhaps for no better reason than that's not how it's done.
If that really bothers you, python expressions accept parameters in the way
you may be accustomed to working, eg:
<dtml-var "say('hello world')">
or
<dtml-call "REQUEST.set('what', 'hello world')">
<dtml-var "say(what)">
HTH
Dylan
>Example:
><dtml-var some_other_dtml_method say="hello">
>
>with some_other_dtml_method:
><dtml-if say>
> I say: <dtml-var say>
></dtml-if>
>
>O.K. there is the way:
><dtml-var expr="some_other_dtml_method( _, REQUEST, say='Hello')">
>
>But in my opinion this is unnessecary complicated, the first way would be
>more intuitive and it shouldn't be so complicated to implement it.
>
>So, was this discussed earlier and is there a reason for not doing it so?
>
>Andreas
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
>http://lists.zope.org/mailman/listinfo/zope-dev )