[Zope] DTML/python syntax problem
Mike Renfro
renfro@tntech.edu
Thu, 30 Aug 2001 15:37:56 -0500
On Thu, Aug 30, 2001 at 04:14:27PM -0400, Thomas B. Passin wrote:
> <dtml-var "_['sequence-item'][:-1]">
>
> This shortens the string by 1, thus removing your character.
Or, in simpler syntax (untested):
<dtml-in somesequence>
<dtml-let item=sequence-item>
<dtml-var "item[:-1]">
</dtml-let>
</dtml-in>
As a general rule, if I ever plan on using sequence-item during a
loop, I just use 'item' instead, as shown above.
--
Mike Renfro / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu