[Zope] String Problem continued
Chris Withers
chrisw@nipltd.com
Mon, 23 Sep 2002 13:03:39 +0100
zope wrote:
>
> The error I get if I try to use string.split to split a function in page
> templates
> is
> Error Type: TALESError
> Error Value: exceptions.AttributeError on ExprTypeProxy instance has no
> attribute 'split' in "", at line 12, column 5
> I am trying to do this
> <p tal:content="python:string.split('jk gf')"></p>
> How can I use the split function to split a string?
> Could you please help me out
This soudns like a bug in ZPT, can you file a collector issue please?
In the meantime, use this:
<p tal:content="python:'jk gf'.split()"></p>
cheers,
Chris