web2py™         Version 1.92.1 (2011-02-16 15:04:40)
Python  Python 2.5.2: /usr/bin/python

Traceback (most recent call last):
  File "/home/szimszon_nfs/web2py/gluon/restricted.py", line 186, in
restricted
    ccode = compile2(code,layer)
  File "/home/szimszon_nfs/web2py/gluon/restricted.py", line 173, in
compile2
    return compile(code.rstrip().replace('\r\n','\n')+'\n', layer,
'exec')
  File "/home/szimszon_nfs/web2py/applications/serveradmin/views/
integrity/ftp.html", line 123
    pass
       ^
SyntaxError: invalid syntax

if msg:
    response.write('\n<h2>', escape=False)
    response.write(T("Commands executed"))
    response.write('</h2>\n', escape=False)
    response.write(XML(msg)
    pass

My template was working until now (I don't know exactly from what
web2py version is it bad).

My template was:

{{if msg:}}
<h2>{{=T("Commands executed")}}</h2>
{{      =XML(msg)
pass
try:
  dname=request.args[1]
except:
  dname=0
pass
editname=T('New')}}

Now I had to modify:

{{if msg:}}
<h2>{{=T("Commands executed")}}</h2>
{{      =XML(msg)}}                  < -----
{{pass                 <-----------
try:
  dname=request.args[1]
except:
  dname=0
pass
editname=T('New')}}

Reply via email to