[Zope-dev] Building custom DTML tags and accessing _.<something>
Morten W. Petersen
morten@thingamy.net
Wed, 9 May 2001 16:53:51 +0200 (CEST)
Hia guys,
I was wondering if any of you could give me a couple of hints about how to
make the _.{random,string,range,Datetime} thingies from a tag expression.
I.e. instead of doing this:
<dtml-widget select options="[1,2,3,4,5,6,7,8,9,10,11,12,13]"
selected="[1,3,5,7,9,11,13">
This could be done:
<dtml-widget select options="_.range(1,14,1)"
selected="_.range(1,14,2)">
Like this (with the DTML var tag):
<dtml-var "[1,2,3,4,5,6,7,8,9,10]">
<dtml-var "_.range(1,11)">
Thanks & cheers,
Morten