diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-09-25 03:50:54 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-09-25 03:50:54 +0200 |
| commit | adc30aa10f1ec4d36c3e1e4bcb6cdb13b7bf1f22 (patch) | |
| tree | 6acb71c410387b57cd64efd7e482d83a9a2216bf /addons/web/common/dispatch.py | |
| parent | da705a6b554c4ffa5ef419db8f446504be23057d (diff) | |
[IMP] web.common.dispatch only load module with controllers
bzr revid: al@openerp.com-20110925015054-1223jdthddb1wrah
Diffstat (limited to 'addons/web/common/dispatch.py')
| -rw-r--r-- | addons/web/common/dispatch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/common/dispatch.py b/addons/web/common/dispatch.py index 2a5546ac85a..c6834a3b715 100644 --- a/addons/web/common/dispatch.py +++ b/addons/web/common/dispatch.py @@ -387,7 +387,8 @@ 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') - if os.path.isfile(manifest_path): + path_controllers = os.path.join(addons_path, module, 'controllers') + if os.path.isfile(manifest_path) and os.path.isdir(path_controllers): manifest = ast.literal_eval(open(manifest_path).read()) _logger.info("Loading %s", module) m = __import__(module) |
