~anybox/openerp-command/7.0-initialize-test-report

« back to all changes in this revision

Viewing changes to openerpcommand/initialize.py

  • Committer: Anonymous Coward on runbot
  • Date: 2013-01-11 09:31:35 UTC
  • Revision ID: anonymous_coward_on_runbot-20130111093135-n218239tjd5zf9ay
Use dash instead of underscore for database name (same as subdomains).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
    # Install the import hook, to import openerp.addons.<module>.
19
19
    openerp.modules.module.initialize_sys_path()
20
 
    openerp.modules.loading.open_openerp_namespace()
 
20
    if hasattr(openerp.modules.loading, 'open_openerp_namespace'):
 
21
        openerp.modules.loading.open_openerp_namespace()
21
22
 
22
23
    registry = openerp.modules.registry.RegistryManager.get(
23
24
        database_name, update_module=True, force_demo=install_demo_data)