[Zope] Dtml-in start=CST object not working
Casey Duncan
c.duncan@nlada.org
Wed, 17 Oct 2001 14:40:10 -0400
On Wednesday 17 October 2001 05:52 am, Paz allegedly wrote:
> Please, oh please can someone tell me why this doesn't seem to work?
>
> <dtml-in "getLG2(lg1=sData.get('key1'))" size=12 orphan=0 sort=value
> start=sData.get('tmStart'))>
> <dtml-if previous-sequence><dtml-call "sData.set('tmPrev',
> _['previous-sequence-start-number'])"></dtml-if>
> ..
> ..
> ..
> <dtml-if next-sequence><dtml-call "sData.set('tmNext',
> _['next-sequence-start-number'])"></dtml-if>
> </dtml-in>
>
[snip]
>
> please and thank you,
>
> Paul Zwarts
AFAIK the start agument takes only a name, not an expression. To get around
this use:
<dtml-let query_start="sData.get('tmStart')">
<dtml-in expr="getLG2(lg1=sData.get('key1'))" size=12 orphan=0 sort=value
start=query_start>
..
</dtml-in>
</dtml-let>
hth,
/---------------------------------------------------\
Casey Duncan, Sr. Web Developer
National Legal Aid and Defender Association
c.duncan@nlada.org
\---------------------------------------------------/