[mod_python] Syntax error in generated psp code

Dan Eloff dan.eloff at gmail.com
Thu Jan 26 13:08:14 EST 2006


Could someone please tell me why this:

<% for href, text in vars.main_menu: %>
	<li><a href="<%=href%>"><%=text%></a></li>
<% # End of menu loop			
%>

Is turuend into:
for href, text in vars.main_menu: ;req.write(""" ....

With that extra ; right after the loop? It creates a syntax error.

How might I write my psp so as to avoid that?

Thanks,
-Dan



More information about the Mod_python mailing list