[Zope] What's the typical conversion from a TALES expression with
spaces to a PythonScript argument?
Simon Bayling
simon.bayling at rockford-uk.com
Wed Oct 15 11:32:39 EDT 2003
Hello,
How do you convert the spaces in a TALES expression?
e.g.
<td tal:content="repeat_object/person id">placeholder</td>
to
<td
tal:content="python:container.script_id_converter(repeat_object.??)">pla
ceholder</td>
At the moment I'm using
<td tal:define="tmp repeat_object/person id"
tal:content="python:container.script_id_converter(tmp)">placeholder</td>
but there must be a nicer way than that (probably a common one I've
missed seeing in the Zope Book somewhere)
Cheers,
Simon Bayling
More information about the Zope
mailing list