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: return False
I don't know what is wrong in this decorator. 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 controller I call > > create_mgt_sys(form_add_entity.vars.id, com) > > Which is defined as: > > def create_mgt_sys(id_new_entity, com): > ...... > > Now web2py/python come with error : > > <type 'exceptions.TypeError'> create_mgt_sys() takes exactly 2 > arguments (0 given) > > Does anybody has a clu on the cause of this? > > Richard D > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.