projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c89aa8
)
[IMP] module loading: iterate on the module graph in deterministic order (by sorting...
author
Vo Minh Thu
<vmt@openerp.com>
Thu, 22 Dec 2011 09:01:56 +0000
(10:01 +0100)
committer
Vo Minh Thu
<vmt@openerp.com>
Thu, 22 Dec 2011 09:01:56 +0000
(10:01 +0100)
bzr revid: vmt@openerp.com-
20111222090156
-us0zccgy50buoi13
openerp/modules/graph.py
patch
|
blob
|
history
diff --git
a/openerp/modules/graph.py
b/openerp/modules/graph.py
index
7b302e9
..
1ee9d51
100644
(file)
--- a/
openerp/modules/graph.py
+++ b/
openerp/modules/graph.py
@@
-146,7
+146,7
@@
class Graph(dict):
level = 0
done = set(self.keys())
while done:
- level_modules = [(name, module) for name, module in self.items() if module.depth==level]
+ level_modules = sorted((name, module) for name, module in self.items() if module.depth==level)
for name, module in level_modules:
done.remove(name)
yield module