Commit 79c9642f authored by Rafael Monnerat's avatar Rafael Monnerat

Refactore erp5 site creation

* Collect informations by JSON into a single call and cache it.
* Use class and cleaner API
* Do not relay on scripts on erp5_configurator, make possible configure
any kind of instance
* use simple HTTP requests to edit information into ERP5
* Be much more assertive and try to circuvent and prevent possible problems that could happens.
parent 5eb24bde
...@@ -494,7 +494,6 @@ class Recipe(BaseSlapRecipe): ...@@ -494,7 +494,6 @@ class Recipe(BaseSlapRecipe):
kumo_conf = {} kumo_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)
mysql_connection_string = "%(mysql_database)s@%(ip)s:%(tcp_port)s %(mysql_user)s %(mysql_password)s" % mysql_conf mysql_connection_string = "%(mysql_database)s@%(ip)s:%(tcp_port)s %(mysql_user)s %(mysql_password)s" % mysql_conf
# XXX URL list vs. repository + list of bt5 names? # XXX URL list vs. repository + list of bt5 names?
...@@ -506,7 +505,7 @@ class Recipe(BaseSlapRecipe): ...@@ -506,7 +505,7 @@ class Recipe(BaseSlapRecipe):
sys.executable, self.wrapper_directory, sys.executable, self.wrapper_directory,
arguments=[erp5_site_id, arguments=[erp5_site_id,
mysql_connection_string, mysql_connection_string,
https_connection_url, [user, password, zope_access],
memcached_conf.get('memcached_url'), memcached_conf.get('memcached_url'),
conversion_server, conversion_server,
kumo_conf.get("kumo_address"), kumo_conf.get("kumo_address"),
......
This diff is collapsed.
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