version 1.86.2 worked fine for me, except that once you save an edited
file in the web2py interface, the save button becomes disabled and you
have to exit out and re-edit in order to save again. On the 1.86.3
problem, the file did not matter, I always got a syntax error on line
2. For example, the following lines at the start of db.py (which I did
not even edit) would give the error.

# -*- coding: utf-8 -*-

#########################################################################
## This scaffolding model makes your app work on Google App Engine too
#########################################################################

if request.env.web2py_runtime_gae:            # if running on Google
App Engine
    db = DAL('gae')                           # connect to Google
BigTable
    session.connect(request, response, db = db) # and store sessions
and tickets there
    ### or use the following lines to store sessions in Memcache
    # from gluon.contrib.memdb import MEMDB
    # from google.appengine.api.memcache import Client
    # session.connect(request, response, db = MEMDB(Client()))
else:                                         # else use a normal
relational database
    db = DAL('sqlite://storage.sqlite')       # if not, use SQLite or
other DB

On Oct 7, 10:09 am, mdipierro <[email protected]> wrote:
> For now I reverted to 1.86.2 hoping the problem is not there.
>
> On Oct 7, 8:39 am, Chuck Paulson <[email protected]> wrote:
>
>
>
> > I just upgraded to version 1.86.3 and whenever I try to edit a file
> > using the web2py interface I get a "failed to compile file because:
> > SyntaxError on line 2..." error. This happens on files that I have not
> > even changed, such as db.py as well as on files that I have created.
> > Help, I can't edit anything.
>
> > Chuck Paulson- Hide quoted text -
>
> - Show quoted text -

Reply via email to