[Zope] Debugging a python routine
Jonathan
dev101 at magma.ca
Mon Jun 27 11:56:30 EDT 2005
----- Original Message -----
From: "John Poltorak" <jp at 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
More information about the Zope
mailing list