Gregory (Grisha) Trubetskoy
grisha at modpython.org
Wed May 11 23:49:37 EDT 2005
On Wed, 11 May 2005, Jim Gallacher wrote: > You found one of the warts in psp. Since your for loop contains no further > python statements, the parser gets confused. Try adding a single comment at > the beginning of your for loop: > > <p> some text for the page </p> > <% > for r in Results: > # begin indentation - comment fixes the syntax error > %> > I got the result <%=r%><br> > <% > # end indentation > %> Actually, (IIRC purposely undocumented), PSP is smart enough to guess that a if code ends on a ":" you mean to start a new block. Grisha
|