+ msg = ''
+ if m == 'web':
+ msg = """
+The `web` module is provided by the addons found in the `openerp-web` project.
+Maybe you forgot to add those addons in your addons_path configuration."""
+ logging.exception('Failed to load server-wide module `%s`.%s', m, msg)
+
+ if config['db_name']:
+ for dbname in config['db_name'].split(','):
+ preload_registry(dbname)
+
+ if config["stop_after_init"]:
+ sys.exit(0)