[Zope] truncation

Chris Withers chrisw@nipltd.com
Wed, 14 Aug 2002 10:01:08 +0100


Paul Winkler wrote:
> TAL doesn't provide this, but you can use a python string slice:
> <td tal:content="python:context.mystring[:10]">dummy string</td>
> 
> You might need to use something other than "context", depending
> on where "mystring" comes from. 

you mean 'here', not 'context'.

cheers,

Chris . o O ( why, god, must we have so many damn names for the same thing?! 
self, here, context, sequence-item, etc, etc :-( )