From de3819972a2de0766be6ec62db013a184ade2e66 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 28 Jan 2014 15:00:25 +0100 Subject: [PATCH] [FIX] Temporary hackish fix in order to restore login on runbot bzr revid: fme@openerp.com-20140128140025-h70s2exdswppp8dn --- openerp/http.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openerp/http.py b/openerp/http.py index d9846b64e3b..481aed04c0f 100644 --- a/openerp/http.py +++ b/openerp/http.py @@ -534,7 +534,9 @@ def routing_map(modules, nodb_only, converters=None): routing = dict(type='http', auth='user', methods=None, routes=None) for claz in reversed(mv.im_class.mro()): fn = getattr(claz, mv.func_name, None) - if fn and hasattr(fn, 'routing'): + if fn and hasattr(fn, 'routing') and '__done__' not in fn.routing: + if not nodb_only: + fn.routing['__done__'] = True routing.update(fn.routing) if not nodb_only or nodb_only == (routing['auth'] == "none"): assert routing['routes'], "Method %r has not route defined" % mv