From 295743b1c19b8e32ebc7adadf895367690269644 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 11 Feb 2014 23:48:46 +0100 Subject: [PATCH] [IMP] oe initialize must take the port as parameter (for http tests) bzr revid: chs@openerp.com-20140211224846-waor2hz1fkw1dml8 --- openerpcommand/initialize.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openerpcommand/initialize.py b/openerpcommand/initialize.py index 3723e9f5c01..dfa14f7b9dd 100644 --- a/openerpcommand/initialize.py +++ b/openerpcommand/initialize.py @@ -79,6 +79,8 @@ def run(args): config['log_handler'] = [':INFO'] config['test_enable'] = True config['without_demo'] = False + if args.port: + config['xmlrpc_port'] = int(args.port) else: config['log_handler'] = [':CRITICAL'] config['test_enable'] = False @@ -124,6 +126,8 @@ def add_parser(subparsers): parser.add_argument('-d', '--database', metavar='DATABASE', **common.required_or_default('DATABASE', 'the database to create')) common.add_addons_argument(parser) + parser.add_argument('-P', '--port', metavar='PORT', + **common.required_or_default('PORT', 'the server port')) parser.add_argument('--module', metavar='MODULE', action='append', help='specify a module to install' ' (this option can be repeated)')