Hi Chris Thanks for the answer. The suggestion has been most helpful. Importing of a module into the page template is a good opiton that has also been suggested. Thanks once again. Best Regards John Kunchandy ----- Original Message ----- From: "Chris Withers" Sent: Monday, September 23, 2002 5:33 PM Subject: Re: [Zope] String Problem continued
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
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.385 / Virus Database: 217 - Release Date: 9/4/2002