What's the typical conversion from a TALES expression with spaces to a PythonScript argument?
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
On Wednesday, October 15, 2003, at 10:32 AM, Simon Bayling wrote:
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.??)">pl a ceholder</td>
python: container.script_id_converter(repeat_object['person id']) -- Ian Bicking | ianb@colorstudy.com | http://blog.ianbicking.org
participants (2)
-
Ian Bicking -
Simon Bayling