[FIX] temporary web module heuristics use static/

bzr revid: al@openerp.com-20110925114051-y3eex2xnn4guu3d0
This commit is contained in:
Antony Lesuisse
2011-09-25 13:40:51 +02:00
parent da30237801
commit 124fcbbd9b
+3 -5
View File
@@ -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()