You cannot have random = signs in your view.
The syntax is
{{python code here}}
{{=python variable here}}
You MUST declare {{= with no space in between. the bracket and equal sign.
--
Thadeus
On Mon, May 17, 2010 at 2:23 AM, szimszon <[email protected]> wrote:
> default/index.html:
> ------------------- cut -----------------------------
> {{extend 'layout.html'}}
>
> {{try:}}{{=H2(message)}}{{except:}}{{=BEAUTIFY(response._vars)}}
> {{pass}}
>
> <h3>{{=T('Changes not in use:')}}</h3>
> {{changes=db(db.web.modified==True).select(db.web.id,db.web.name,db.web.controller)
> if len(changes)>0:
> for douse in changes:
> =XML('[%s]<br/>'%A(T('Modified %(name)s config, use
> it!',dict(name=douse.name)),_href=URL(r=request,c=douse.controller,f='webdouse',args=douse.id)))
> pass
> else:
> =T('Web Nothing')
> pass}}
> <br />
> {{changes=db(db.dns.modified==True).select(db.dns.id,db.dns.name,db.dns.controller)
> if len(changes)>0:
> for douse in changes:
> =XML('[%s]<br/>'%A(T('Modified %(name)s config, use
> it!',dict(name=douse.name)),_href=URL(r=request,c=douse.controller,f='dnsdouse',args=douse.id)))
> pass
> else:
> =T('DNS Nothing')
> pass}}
>
> ------------------- cut -----------------------------
> Ticket 127.0.0.1.2010-05-17.09-20-49.56d45b51-05f0-49b5-9b10-
> cd7e9a3212a6
> missing "pass" in view
>
>
> Error traceback
>
> Traceback (most recent call last):
> File "/home/szimszon/fejlesztes/sajat/web2py/gluon/rocket.py", line
> 769, in run
> self.run_app(conn)
> File "/home/szimszon/fejlesztes/sajat/web2py/gluon/rocket.py", line
> 1172, in run_app
> self.environ = environ = self.build_environ(sock_file, conn)
> File "/home/szimszon/fejlesztes/sajat/web2py/gluon/rocket.py", line
> 1008, in build_environ
> request = self.read_request_line(sock_file)
> File "/home/szimszon/fejlesztes/sajat/web2py/gluon/rocket.py", line
> 834, in read_request_line
> raise SocketTimeout("Socket timed out before request.")
> SocketTimeout: Socket timed out before request.
>