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
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
-
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:
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
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.
5 matches
Mail list logo