From 124fcbbd9bd59ee84f2474c44aaaa06859c4b99a Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Sun, 25 Sep 2011 13:40:51 +0200 Subject: [PATCH] [FIX] temporary web module heuristics use static/ bzr revid: al@openerp.com-20110925114051-y3eex2xnn4guu3d0 --- addons/web/common/dispatch.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/addons/web/common/dispatch.py b/addons/web/common/dispatch.py index c6834a3b715..b0ab780cff0 100644 --- a/addons/web/common/dispatch.py +++ b/addons/web/common/dispatch.py @@ -387,16 +387,14 @@ class Root(object): for module in os.listdir(addons_path): if module not in addons_module: manifest_path = os.path.join(addons_path, module, '__openerp__.py') - path_controllers = os.path.join(addons_path, module, 'controllers') - if os.path.isfile(manifest_path) and os.path.isdir(path_controllers): + path_static = os.path.join(addons_path, module, 'static') + if os.path.isfile(manifest_path) and os.path.isdir(path_static): manifest = ast.literal_eval(open(manifest_path).read()) _logger.info("Loading %s", module) m = __import__(module) addons_module[module] = m addons_manifest[module] = manifest - - statics['/%s/static' % module] = \ - os.path.join(addons_path, module, 'static') + statics['/%s/static' % module] = path_static for k, v in controllers_class.items(): if k not in controllers_object: o = v()