Hello, I'm getting this error when I try to star any of the app:
Ticket issued: admin/127.0.0.1.2010-05-18.10-39-45.4c56ac32- d0db-4f64-98f0-9e3c1c93518b Traceback (most recent call last):\n File "C:\\web2py\\gluon\ \main.py", line 381, in wsgibase\n serve_controller(request, response, session)\n File "C:\\web2py\\gluon\\main.py", line 159, in serve_controller\n run_view_in(response._view_environment)\n File "C:\\web2py\\gluon\\compileapp.py", line 456, in run_view_in\n os.path.join(folder, \'views\'), context=environment)\n File "C:\ \web2py\\gluon\\template.py", line 625, in parse_template\n lexers=lexers).to_string()\n File "C:\\web2py\\gluon\\template.py", line 272, in __init__\n self.parse(text)\n File "C:\\web2py\\gluon\ \template.py", line 569, in parse\n pre_extend_statements = len(top) \nTypeError: object of type \'Content\' has no len()\n' I have this error since I updated this morning via mercurial and nothing is working. I can't see the ticket and the admin interface is not working too. On 18 mayo, 08:03, szimszon <szims...@gmail.com> wrote: > 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.