summaryrefslogtreecommitdiff
path: root/openerp/modules/graph.py
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2011-11-17 15:46:28 +0100
committerVo Minh Thu <vmt@openerp.com>2011-11-17 15:46:28 +0100
commit99f99b6d8317ddeb53339b24934d722c97d1dc61 (patch)
tree161722f110748284bcc9569ecd86fad58857ebf1 /openerp/modules/graph.py
parent330316672ff5490602a1eb4e7743514355c306e4 (diff)
[REF] openerp.modules.loading: preparing to support the -i=all option:
getting almost rid of the mess with tools.config[init|update]. bzr revid: vmt@openerp.com-20111117144628-pjpac87b5whg5cl0
Diffstat (limited to 'openerp/modules/graph.py')
-rw-r--r--openerp/modules/graph.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/openerp/modules/graph.py b/openerp/modules/graph.py
index 7b302e99f4c..62b706ad846 100644
--- a/openerp/modules/graph.py
+++ b/openerp/modules/graph.py
@@ -122,9 +122,6 @@ class Graph(dict):
current.remove(package)
node = self.add_node(package, info)
node.data = info
- for kind in ('init', 'demo', 'update'):
- if package in tools.config[kind] or 'all' in tools.config[kind] or kind in force:
- setattr(node, kind, True)
else:
later.add(package)
packages.append((package, info))
@@ -186,18 +183,11 @@ class Node(Singleton):
node.depth = self.depth + 1
if node not in self.children:
self.children.append(node)
- for attr in ('init', 'update', 'demo'):
- if hasattr(self, attr):
- setattr(node, attr, True)
self.children.sort(lambda x, y: cmp(x.name, y.name))
return node
def __setattr__(self, name, value):
super(Singleton, self).__setattr__(name, value)
- if name in ('init', 'update', 'demo'):
- tools.config[name][self.name] = 1
- for child in self.children:
- setattr(child, name, value)
if name == 'depth':
for child in self.children:
setattr(child, name, value + 1)