[Zope] truncation

Paul Winkler pw_lists@slinkp.com
Wed, 14 Aug 2002 07:15:56 -0700


On Wed, Aug 14, 2002 at 10:01:08AM +0100, Chris Withers wrote:
> 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'.

aargh!
"here" in zpt, even within python expressions...
but "context" in python scripts.

AFAICT they mean exactly the same thing. Yuck. I hope
this will be unified in zope 3.

I'm gonna go write that on the board 100 times...

--

Paul Winkler
"Welcome to Muppet Labs, where the future is made - today!"