I was stupid enough not to be careful now I have a serious problem.

I am using the trunk on my laptop where I do my development. 

This morning I found that certain functions that works on my laptop does 
not work on the server (which had a slightly older version of the 
web2py-trunk).

I then rsynced the web2py-directory (excluding the applications directory) 
to the server. 

Since then I cannot get the app to work on the server despite having put 
back the original web2py from a backup.

The ticket looks like this and I am so far unsuccessful in solving this 
problem.

Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/restricted.py", line 205, in restricted
    exec ccode in environment
  File "/home/www-data/web2py/applications/init/models/db.py", line 40, in 
<module>
    auth = Auth(db)                                # 
authentication/authorization
  File "/home/www-data/web2py/gluon/tools.py", line 901, in __init__
    request = current.request
AttributeError: 'thread._local' object has no attribute 'request'

and the first part of db.py (I have removed the commented lines

if request.env.web2py_runtime_gae:            # if running on Google App 
Engine
    db = DAL('google:datastore')              # connect to Google BigTable
                                              # optional 
DAL('gae://namespace')
    session.connect(request, response, db = db) # and store sessions and 
tickets there
    db = settings.database_uri
from gluon import current
current.db = db
from gluon.tools import Mail, Auth, Crud, Service, PluginManager, prettydate

mail = Mail()                                  # mailer
auth = Auth(db)         



What is causing this problem?.

It must be something in the app because other apps on the server work.

Regards
Johann

-- 



Reply via email to