Little better message when modules cannot be loaded.
bzr revid: p_christ@hol.gr-20090131114835-7go7yhsve0t8oks0
This commit is contained in:
@@ -695,13 +695,14 @@ def load_modules(db, force_demo=False, status=None, update_module=False):
|
||||
if not module_list:
|
||||
break
|
||||
|
||||
logger.notifyChannel('init', netsvc.LOG_DEBUG, 'Updating graph with %d more modules' % (len(module_list)))
|
||||
#logger.notifyChannel('init', netsvc.LOG_DEBUG, 'Updating graph with %d more modules' % (len(module_list)))
|
||||
if not upgrade_graph(graph, module_list, force):
|
||||
logger.notifyChannel('init', netsvc.LOG_WARNING, 'These modules are in db, but cannot be loaded: ' + (', '.join(module_list)))
|
||||
break
|
||||
r = load_module_graph(cr, graph, status, report=report)
|
||||
has_updates = has_updates or r
|
||||
|
||||
logger.notifyChannel('init', netsvc.LOG_DEBUG, 'Has updates %s' % (str(has_updates)))
|
||||
#logger.notifyChannel('init', netsvc.LOG_DEBUG, 'Has updates %s' % (str(has_updates)))
|
||||
loop_count +=1
|
||||
if (loop_count >100):
|
||||
raise ProgrammingError()
|
||||
|
||||
Reference in New Issue
Block a user