[IMP] web.http: _load_addons load the addons in a reproducible way.
I believe there are potential circular imports that can break because of openerp.modules.module ImportHook, but they are deifficult to reproduce when the import order is not always the same. bzr revid: vmt@openerp.com-20121210140411-ranw3jc3mwu3ymty
This commit is contained in:
parent
507c02aaa2
commit
3e6c62d472
|
@ -537,7 +537,7 @@ class Root(object):
|
|||
"""
|
||||
statics = {}
|
||||
for addons_path in openerp.modules.module.ad_paths:
|
||||
for module in os.listdir(addons_path):
|
||||
for module in sorted(os.listdir(addons_path)):
|
||||
if module not in addons_module:
|
||||
manifest_path = os.path.join(addons_path, module, '__openerp__.py')
|
||||
path_static = os.path.join(addons_path, module, 'static')
|
||||
|
|
Loading…
Reference in New Issue