Commit 9acf53fc authored by Łukasz Nowak's avatar Łukasz Nowak

- conversion_server_conf and memcached_conf are optional parameters for

   ERP5 site
 - erp5_site_id can have reasonable default in method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44469 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d40a2e98
...@@ -334,9 +334,13 @@ class Recipe(BaseSlapRecipe): ...@@ -334,9 +334,13 @@ class Recipe(BaseSlapRecipe):
return user, password return user, password
def installERP5Site(self, user, password, zope_access, mysql_conf, def installERP5Site(self, user, password, zope_access, mysql_conf,
conversion_server_conf, memcached_conf, erp5_site_id): conversion_server_conf=None, memcached_conf=None, erp5_site_id='erp5'):
""" Create a script controlled by supervisor, which creates a erp5 """ Create a script controlled by supervisor, which creates a erp5
site on current available zope and mysql environment""" site on current available zope and mysql environment"""
if conversion_server_conf is None:
conversion_server_conf = {}
if memcached_conf is None:
memcached_conf = {}
# XXX Conversion server and memcache server coordinates are not relevant # XXX Conversion server and memcache server coordinates are not relevant
# for pure site creation. # for pure site creation.
https_connection_url = "http://%s:%s@%s/" % (user, password, zope_access) https_connection_url = "http://%s:%s@%s/" % (user, password, zope_access)
...@@ -354,9 +358,9 @@ class Recipe(BaseSlapRecipe): ...@@ -354,9 +358,9 @@ class Recipe(BaseSlapRecipe):
arguments=[erp5_site_id, arguments=[erp5_site_id,
mysql_connection_string, mysql_connection_string,
https_connection_url, https_connection_url,
memcached_conf['memcached_url'], memcached_conf.get('memcached_url'),
conversion_server_conf['conversion_server_ip'], conversion_server_conf.get('conversion_server_ip'),
conversion_server_conf['conversion_server_port'], conversion_server_conf.get('conversion_server_port'),
bt5_list, bt5_list,
bt5_repository_list])) bt5_repository_list]))
return [] return []
......
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