The fact that it does not work with new engine has to be considered a
bug. I should have caught it before. I am now working to fix it. The
new engine will be 100% backard compatible.

I think I have already fixed this problem in trunk (please check it)
but there are still some issues with multiline strings like.

I think it is safe to safe to say we will have 1.78.3 by tomorrow with
all these problems fixed.

Please continue to report any probleme with this so they can be
addressed.
I apologize for not checking this before. We definitively more tests
for template.py

massimo


On May 17, 10:15 am, szimszon <[email protected]> wrote:
> There is odd because I have a lot of code with
> {{                 =some.var}}
>
> and
>
> {{if something:
>     =T('something')
>   pass}}
>
> If it doesn't work with the new engine I have to do a lot of work :(
>
> On máj. 17, 16:53, Thadeus Burgess <[email protected]> wrote:
>
> > 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.con
> > >  troller)
> > >  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='webdo
> > >  use',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.con
> > >  troller)
> > >  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='dnsdo
> > >  use',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.

Reply via email to