Allow SSL cert for the database to be configured

This change adds a field for the SSL cert for the database in the setup tool. Fixes #89
This commit is contained in:
Joseph Schorr 2015-06-29 08:08:10 +03:00
parent 4ec2143d47
commit bb07d0965f
8 changed files with 45 additions and 12 deletions

View file

@ -84,10 +84,11 @@ db_random_func = CallableProxy()
db_for_update = CallableProxy()
def validate_database_url(url, connect_timeout=5):
driver = _db_from_url(url, {
'connect_timeout': connect_timeout
})
def validate_database_url(url, db_kwargs, connect_timeout=5):
db_kwargs = db_kwargs.copy()
db_kwargs['connect_timeout'] = connect_timeout
driver = _db_from_url(url, db_kwargs)
driver.connect()
driver.close()