[Zope] String splitting problem

zope zope@stylusinc.net
Mon, 23 Sep 2002 16:47:28 +0530


Hi

I have a problem with splitting a string .
I am using XSL for rendering my pages

<hrow tal:repeat="rt
python:container.oms.john.get_monthdet(mon=request.form['mon'])">
<field><div tal:replace="python:string.split(rt[1])"/></field>
</hrow>

I want to split the result set field rt[1] based on white space
rt[1] can be datetime or string.
But this throws an error when rendered

If I try this in html:
<tr tal:repeat="rt
python:container.oms.john.get_monthdet(mon=request.form['mon'])">
<td><div tal:replace="python:string.split(rt[1])"/></td>
</tr>
Error Type: TALESError
Error Value: exceptions.NameError on global name 'split' is not defined in
"", at line 12, column 5

But the Zope Quick Reference says that split can be used
Could you please guide me on how to go about this problem
Thanks and Best Regards
John Kunchandy


---
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