summaryrefslogtreecommitdiff
path: root/addons/web/common/dispatch.py
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-09-25 13:40:51 +0200
committerAntony Lesuisse <al@openerp.com>2011-09-25 13:40:51 +0200
commit124fcbbd9bd59ee84f2474c44aaaa06859c4b99a (patch)
tree99d82a6603c9d8397c2810ca621540fdf761d444 /addons/web/common/dispatch.py
parentda302378019e419b0e989937692cc5f680247c11 (diff)
[FIX] temporary web module heuristics use static/
bzr revid: al@openerp.com-20110925114051-y3eex2xnn4guu3d0
Diffstat (limited to 'addons/web/common/dispatch.py')
-rw-r--r--addons/web/common/dispatch.py8
1 files 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()