[Zope] How do I get the first ten characters of a string?

Siggy Brentrup bsb@winnegan.de
23 Feb 2001 17:42:42 +0100


Lars Heber <Lars.Heber@t-systems.de> writes:

> <dtml-let myTest="'some really senseless blah'">
  <dtml-var "myTest[:10]"> ... <dtml-var "myTest[-10:]">
> </dtml-let>

the second one extracts the final 10 characters.

> 
> I couldn't find the solution anywhere...

Knowing Python helps alot.

HTH
  Siggy