[mod_python] Using Templates

Graham Dumpleton graham.dumpleton at gmail.com
Wed Jul 11 23:22:57 EDT 2007


On 11/07/07, ron banks <rebcoair at cfl.rr.com> wrote:

>   File "/var/www/html/TaskMaster/Month.tmpl", line 22
>
>     req.write("""
>
>
> """,0); req.write(str(loadPan()),0); req.write("""
> """,0); req.write(str(loadMonth(req, =strDate)),0); req.write("""

Bad syntax caused by '=' before 'strDate' when used as argument to
function. Everything between the '<%=' and '%>' must be valid Python
code. You should not be sticking additional '=' in front of variable
references.

Graham


More information about the Mod_python mailing list