27 Jun
2005
27 Jun
'05
3:56 p.m.
----- Original Message ----- From: "John Poltorak" <jp@warpix.org>
Can anyone suggest how I would go about debugging a Python routine like this through Zope?
<span tal:define="opts python:here.lib.parse_file(file=here.members,sepr=',',clone=1)"> <tal:block repeat="opt opts"> <li><a tal:content="python:opt[1]" tal:attributes="href python:opt[0]"></a></li> </tal:block> </span>
I would start by testing the python routine on its own (ie. without any ZPT stuff) to make sure it is producing what you expect, then add in the ZPT stuff bit-by-bit. Jonathan