[Zope] DTML/python syntax problem

Thomas B. Passin tpassin@mitretek.org
Thu, 30 Aug 2001 16:14:27 -0400


[Andreas Wandel]> I have to change the string contained in
_['sequence-item'] by removing the
> character "*" at the end of the string.
> There should be a solution by using a combination of _.string.replace and
> _.string.strip, but I need a hint how to put them together.
>

<dtml-var "_['sequence-item'][:-1]">

This shortens the string by 1, thus removing your character.

Tom P