[Zope] Re: dtml-Variablen in <dtml-in> loops?
Tino Wildenhain
tino@wildenhain.de
Sun, 27 May 2001 14:24:42 +0200
Hi Philipp,
ok, I see what you want to do here, but not why
you want to do it (that way) ;)
Why not using:
<dtml-in "DATA[start:end]"> or whatever.
Please explain what you are about to do with your
complicated use of the in-tag.
Regards
Tino Wildenhain
--On Sonntag, 27. Mai 2001 11:37 +0200 Philipp Robbel
<philipp.robbel@eml.villa-bosch.de> wrote:
> Hallo,
>
> sorry, I am using MS Outlook "Web Access" running on my company's server
> and I cannot find any option how to send messages in plain text! Sorry
> for that.
>
>> what exactly do you want to do?
>> May be start and size can help you?
>
> Basically I have an outer <dtml-in> and another nested one:
>
> <dtml-in ...>
> ....
> <dtml-call "REQUEST.set('TEMP',1)">
> ....
> <dtml-call "REQUEST.set('TEMP2', (TEMP+_.getitem('Count'))-1)">
> <dtml-in DATA start=TEMP end=TEMP2>
> ...
> </dtml-in>
> <dtml-call "REQUEST.set('TEMP', TEMP+(_.getitem('Count')))">
> </dtml-let>
>
> You can see from the code that I have to work with REQUEST.set to get
> around the problem that I cannot type:
> <dtml-in DATA start=TEMP end="TEMP + _.getitem('Count')-1"> or
> something.
>
> Can you think of a way to use (python) calculations in the "end=" of
> <dtml-in>?
>
>
> Thanks again,
> Philipp Robbel