From 568ec06c06a98f71a46201582d4ec4f02305458d Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 28 Jan 2014 15:11:22 +0100 Subject: [PATCH] [FIX] proper fix bzr revid: fme@openerp.com-20140128141122-x1tj370w7zqi033h --- openerp/http.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openerp/http.py b/openerp/http.py index 481aed04c0f..23c677f0620 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -532,11 +532,11 @@ def routing_map(modules, nodb_only, converters=None): for mk, mv in members: if inspect.ismethod(mv) and hasattr(mv, 'routing'): routing = dict(type='http', auth='user', methods=None, routes=None) + methods_done = list() for claz in reversed(mv.im_class.mro()): fn = getattr(claz, mv.func_name, None) - if fn and hasattr(fn, 'routing') and '__done__' not in fn.routing: - if not nodb_only: - fn.routing['__done__'] = True + if fn and hasattr(fn, 'routing') and fn not in methods_done: + methods_done.append(fn) routing.update(fn.routing) if not nodb_only or nodb_only == (routing['auth'] == "none"): assert routing['routes'], "Method %r has not route defined" % mv