~openerp-dev/openerp-command/trunk-automatic-module-loading-cto

« back to all changes in this revision

Viewing changes to openerpcommand/read.py

  • Committer: Vo Minh Thu
  • Date: 2012-11-05 17:34:39 UTC
  • Revision ID: vmt@openerp.com-20121105173439-hin6b157v33k2ytf
[IMP] Added a --tests flag to install demo data and run integrated tests during database initialization.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    assert args.database
12
12
    assert args.model
13
13
    import openerp
14
 
    openerp.tools.config['log_level'] = 100
 
14
    config = openerp.tools.config
 
15
    config['log_handler'] = [':CRITICAL']
15
16
    openerp.netsvc.init_logger()
16
17
    registry = openerp.modules.registry.RegistryManager.get(
17
18
        args.database, update_module=False, pooljobs=False)