[IMP] oe: get db password from config file
bzr revid: xmo@openerp.com-20140131114828-b90z3pxql63ky6gp
This commit is contained in:
parent
46cbf22efb
commit
830618d871
|
@ -101,11 +101,11 @@ def run(args):
|
||||||
import openerp
|
import openerp
|
||||||
|
|
||||||
config = openerp.tools.config
|
config = openerp.tools.config
|
||||||
|
config.load()
|
||||||
|
|
||||||
config['db_name'] = args.database
|
config['db_name'] = args.database
|
||||||
if args.port:
|
if args.port:
|
||||||
config['xmlrpc_port'] = int(args.port)
|
config['xmlrpc_port'] = int(args.port)
|
||||||
config['admin_passwd'] = 'admin'
|
|
||||||
config['db_password'] = 'a2aevl8w' # TODO from .openerpserverrc
|
|
||||||
|
|
||||||
if args.addons:
|
if args.addons:
|
||||||
args.addons = args.addons.replace(':',',').split(',')
|
args.addons = args.addons.replace(':',',').split(',')
|
||||||
|
|
Loading…
Reference in New Issue