diff --git a/openerp/http.py b/openerp/http.py index 7ce70795a82..8e82beac43e 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -208,7 +208,7 @@ class WebRequest(object): args = (request,) + args # Correct exception handling and concurency retry @service_model.check - def checked_call(dbname, *a, **kw): + def checked_call(___dbname, *a, **kw): return self.func(*a, **kw) # FIXME: code and rollback management could be cleaned diff --git a/openerp/service/model.py b/openerp/service/model.py index a2c2dff90c5..d65cbd77333 100644 --- a/openerp/service/model.py +++ b/openerp/service/model.py @@ -40,9 +40,10 @@ def dispatch(method, params): def check(f): @wraps(f) - def wrapper(dbname, *args, **kwargs): + def wrapper(___dbname, *args, **kwargs): """ Wraps around OSV functions and normalises a few exceptions """ + dbname = ___dbname # NOTE: this forbid to use "___dbname" as arguments in http routes def tr(src, ttype): # We try to do the same as the _(), but without the frame