Skip to content

Commit

Permalink
[FIX] config: fix parsing of geoip db paramater, rename command-line …
Browse files Browse the repository at this point in the history
…option for consistency
  • Loading branch information
odony committed Oct 15, 2014
1 parent 2cde559 commit 2bdbe25
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openerp/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def __init__(self, fname=None):
type="int")
group.add_option("--unaccent", dest="unaccent", my_default=False, action="store_true",
help="Use the unaccent function provided by the database when available.")
group.add_option("--geoip_db", dest="geoip_database", my_default='/usr/share/GeoIP/GeoLiteCity.dat', action="store_true",
group.add_option("--geoip-db", dest="geoip_database", my_default='/usr/share/GeoIP/GeoLiteCity.dat',
help="Absolute path to the GeoIP database file.")
parser.add_option_group(group)

Expand Down Expand Up @@ -397,8 +397,9 @@ def die(cond, msg):
'db_maxconn', 'import_partial', 'addons_path',
'xmlrpc', 'syslog', 'without_demo', 'timezone',
'xmlrpcs_interface', 'xmlrpcs_port', 'xmlrpcs',
'secure_cert_file', 'secure_pkey_file', 'dbfilter', 'log_handler', 'log_level', 'log_db'
]
'secure_cert_file', 'secure_pkey_file', 'dbfilter', 'log_handler', 'log_level', 'log_db',
'geoip_database',
]

for arg in keys:
# Copy the command-line argument (except the special case for log_handler, due to
Expand Down

0 comments on commit 2bdbe25

Please sign in to comment.