1.78.3 seems to work correctly TNX.

There is one thing left with web2py and squeeze, the simplejson
thing... :-o

On máj. 17, 19:25, mdipierro <mdipie...@cs.depaul.edu> wrote:
> You are right. It is possible it is not documented in the book and it
> is not your fault that it is not in the new template.py. Yet, this was
> discussed some time ago on this list and a lot of people rely on it. I
> think I added it to trunk. One problem remains with multiline comments
> but I think I can fix it easily since your code is very modular and
> readable. Anyway, let me know when you will have access to a computer
> with the code so you can check it too.
>
> Massimo
>
> On May 17, 11:59 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
>
>
>
> > Well, we only caught the bugs because a new version of web2py is released :)
>
> > Honestly, I don't see documentation for the
>
> > {{if True:
> >    =i
> > pass}}
>
> > syntax anywhere, nor have I seen an example of this until now.
>
> > --
> > Thadeus
>
> > On Mon, May 17, 2010 at 11:13 AM, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > > 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 <szims...@gmail.com> 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 <thade...@thadeusb.com> 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 <szims...@gmail.com> 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