Commit fd82b4c6 authored by Romain Courteaud's avatar Romain Courteaud

Simplify configuration

parent baf9328c
...@@ -46,12 +46,14 @@ class Recipe(GenericBaseRecipe): ...@@ -46,12 +46,14 @@ class Recipe(GenericBaseRecipe):
password=parsed.password password=parsed.password
) )
zope_parsed = urlparse.urlparse(self.options['zope-url'])
config = dict( config = dict(
python_path=sys.executable, python_path=sys.executable,
user=self.options['user'], user=zope_parsed.username,
password=self.options['password'], password=zope_parsed.password,
site-id=self.options['site-id'], site-id=zope_parsed.split('/')[1],
host=self.options['host'], host="%s:%s" % (zope_parsed.hostname, zope_parsed.port),
sql-connection-string=mysql_connection_string, sql-connection-string=mysql_connection_string,
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment