Commit 842f5a60 authored by Łukasz Nowak's avatar Łukasz Nowak

- Zope user and password can be stored and resued from connection dict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44150 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a44aa95f
......@@ -319,9 +319,8 @@ class Recipe(BaseSlapRecipe):
# Create init user
password = self.generatePassword()
write_inituser(os.path.join(self.erp5_directory, "inituser"),
CONFIG['zope_user'], password)
self.connection_dict.update(zope_user=CONFIG['zope_user'],
zope_password=password)
'zope', password)
self.connection_dict.update(zope_user='zope', zope_password=password)
self._createDirectory(self.erp5_directory)
for directory in (
......@@ -337,7 +336,7 @@ class Recipe(BaseSlapRecipe):
self._createDirectory(os.path.join(self.erp5_directory, directory))
return []
def installERP5Site(self, mysql_connection_string, erp5_site_id='erp5',):
def installERP5Site(self, mysql_connection_string, erp5_site_id='erp5'):
""" Create a script controlled by supervisor, which creates a erp5
site on current available zope and mysql environment"""
......
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