Remove config after graph creation (better place)

bzr revid: ced-8c6aaa35c2565c6c22c513762370bc638aa27d64
This commit is contained in:
ced 2006-12-29 08:35:25 +00:00
parent e494e55989
commit 7b44090981
1 changed files with 3 additions and 2 deletions

View File

@ -157,8 +157,6 @@ def create_graph(module_list, force=[]):
for package in later:
logger.notifyChannel('init', netsvc.LOG_ERROR, 'addon:%s:Unmet dependency' % package)
for kind in ('init', 'demo', 'update'):
tools.config[kind]={}
return graph
def init_module_objects(cr, module_name, obj_list):
@ -247,6 +245,9 @@ def load_modules(db, force_demo=False, status={}, update_module=False):
graph = create_graph(module_list, force)
load_module_graph(cr, graph, status)
for kind in ('init', 'demo', 'update'):
tools.config[kind]={}
cr.commit()
if update_module:
cr.execute("select id,name from ir_module_module where state in ('to remove')")