Commit fd82b4c6 authored by Romain Courteaud's avatar Romain Courteaud

Simplify configuration

parent baf9328c
......@@ -46,12 +46,14 @@ class Recipe(GenericBaseRecipe):
password=parsed.password
)
zope_parsed = urlparse.urlparse(self.options['zope-url'])
config = dict(
python_path=sys.executable,
user=self.options['user'],
password=self.options['password'],
site-id=self.options['site-id'],
host=self.options['host'],
user=zope_parsed.username,
password=zope_parsed.password,
site-id=zope_parsed.split('/')[1],
host="%s:%s" % (zope_parsed.hostname, zope_parsed.port),
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