[Zope] DTML/python syntax problem

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Thu, 30 Aug 2001 23:48:52 +0400 (MSD)


On Thu, 30 Aug 2001, Andreas Wandel wrote:
> 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.

   _.string.replace(_['sequence-item'], '*', '')

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.