I have recently upgraded from web2py release R-2.4.6 to the head of the branch. I am using web2py on appengine, using:
from gluon.contrib.memdb import MEMDB from google.appengine.api.memcache import Client session.connect(request, response, db = MEMDB(Client())) I also have the following code in db.py, to monitor db performance: def log_db(action): d = action() logger.info(repr(db._timings)) return d response._caller = log_db When trying to login, using a session cookie that might have been set before the update, I got the error below. It happened systematically, whenever I tried to log in. Then, I downgraded to the older web2py R-2.4.6 release, logged in, then out, and reupgraded to the newest release, and the error went away. Does anyone have any suggestions as to why this might be the case? Has the logging mechanism changed? Have the auth tables changed? Also, should this error be caught by web2py and handled in a more graceful way? Luca File "/home/luca/work/web2py-crowdrank/applications/crowdgrader/models/db.py", line 220, in log_db d = action() File "/home/luca/work/web2py-crowdrank/applications/crowdgrader/controllers/default.py", line 31, in user return dict(form=auth()) File "/home/luca/work/web2py-crowdrank/gluon/tools.py", line 1293, in __call__ return getattr(self, args[0])() File "/home/luca/work/web2py-crowdrank/gluon/tools.py", line 2253, in login self.login_user(user) File "/home/luca/work/web2py-crowdrank/gluon/tools.py", line 1874, in login_user db=sessdb File "/home/luca/work/web2py-crowdrank/gluon/globals.py", line 739, in renew row = db(table.id == record_id).select() File "/home/luca/work/web2py-crowdrank/gluon/contrib/memdb.py", line 327, in __eq__ return Query(self, '=', value) File "/home/luca/work/web2py-crowdrank/gluon/contrib/memdb.py", line 507, in __init__ id=long(right)) ValueError: invalid literal for long() with base 10: 'None' -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.