[Zope] extra parameters in dtml-var

Andy McKay andy@agmweb.ca
Sat, 19 Oct 2002 11:37:05 -0700


Because youre making the assumption that some_other_dtml is an object that
accepts parameters, rather than say a string, integer or list (for example).
Dtml var is really "give me the string representation of something", rather
than specifically call an object. I once heard a suggestion that dtml-var
should be called dtml-print. You use parameters to that dtml var to alter
that string representation.
--
  Andy McKay
  www.agmweb.ca

----- Original Message -----
From: "Andreas Brinner" <abrinner@gmx.de>
To: <zope@zope.org>
Sent: Saturday, October 19, 2002 11:18 AM
Subject: [Zope] extra parameters in dtml-var


> Hello,
>
> 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:
>
> 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 )
>