[web2py] Re: Python upgrade

2014-08-15 Thread Richard
Leonel, Thank you, this works. So nothing to do with the upgrade to Python 2.7.8. Richard D On Thursday, August 14, 2014 7:44:21 PM UTC+2, Richard wrote: > > Good evening, > > I did upgrade python from 2.7.4 to 2.7.8. on my development laptop and > encounter a 'basic' issue. > > In a controlle

[web2py] Re: Python upgrade

2014-08-14 Thread Leonel Câmara
It should be: def log_usage(function): if db(db.community).select(): def inner(*args, **kwargs): db.im_usage.insert(function_name=function.func_name) db.commit() return function(*args, **kwargs) return inner else: return False -

[web2py] Re: Python upgrade

2014-08-14 Thread Richard
The decorator on the function is causing the error: def log_usage(function): if db(db.community).select(): def inner(*args, **kwargs): db.im_usage.insert(function_name=function.func_name) db.commit() return function() return inner else:

[web2py] Re: Python upgrade

2014-08-14 Thread Richard
I did reboot, and recompiled the app. No success. On Thursday, August 14, 2014 9:03:44 PM UTC+2, dlypka wrote: > > Maybe just try rebooting you machine. > > On Thursday, August 14, 2014 10:44:21 AM UTC-7, Richard wrote: >> >> Good evening, >> >> I did upgrade python from 2.7.4 to 2.7.8. on my dev

[web2py] Re: Python upgrade

2014-08-14 Thread dlypka
Maybe just try rebooting you machine. On Thursday, August 14, 2014 10:44:21 AM UTC-7, Richard wrote: > > Good evening, > > I did upgrade python from 2.7.4 to 2.7.8. on my development laptop and > encounter a 'basic' issue. > > In a controller I call > > create_mgt_sys(form_add_entity.vars.