[Zope] How do I get the first ten characters of a string?
Spinwing
spinwing@inwind.it
Sat, 24 Feb 2001 11:47:12 +0100
Hello
with the standard Python expression:
<dtml-var expr="myTest[0:11]">
this should work
Rgds
Stefano
Message: 45
Date: Fri, 23 Feb 2001 17:24:34 +0100
From: Lars Heber <Lars.Heber@t-systems.de>
Organization: T-Systems, debis Systemhaus GEI GmbH
To: zope@zope.org
Subject: [Zope] How do I get the first ten characters of a string?
<dtml-let myTest="'some really senseless blah'">
<dtml-var *first 10 characters of myTest*>
</dtml-let>
I couldn't find the solution anywhere...
TIA
Lars