Commit 5689dcbd authored by Łukasz Nowak's avatar Łukasz Nowak

Allow configuring Zope node with TIDStorage.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45837 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3983dfc
...@@ -607,7 +607,7 @@ class Recipe(BaseSlapRecipe): ...@@ -607,7 +607,7 @@ class Recipe(BaseSlapRecipe):
return dict(host=ip, port=port) return dict(host=ip, port=port)
def installZope(self, ip, port, name, zodb_configuration_string, def installZope(self, ip, port, name, zodb_configuration_string,
with_timerservice=False): with_timerservice=False, tidstorage_config=None):
# Create zope configuration file # Create zope configuration file
zope_config = dict( zope_config = dict(
products=self.options['products'], products=self.options['products'],
...@@ -645,6 +645,11 @@ class Recipe(BaseSlapRecipe): ...@@ -645,6 +645,11 @@ class Recipe(BaseSlapRecipe):
if with_timerservice: if with_timerservice:
zope_conf_content += self.substituteTemplate( zope_conf_content += self.substituteTemplate(
self.getTemplateFilename('zope.conf.timerservice.in'), zope_config) self.getTemplateFilename('zope.conf.timerservice.in'), zope_config)
if tidstorage_config is not None:
zope_conf_content += self.substituteTemplate(
self.getTemplateFilename('zope-tidstorage-snippet.conf.in'),
tidstorage_config)
zope_conf_path = self.createConfigurationFile("%s.conf" % name, zope_conf_path = self.createConfigurationFile("%s.conf" % name,
zope_conf_content) zope_conf_content)
self.path_list.append(zope_conf_path) self.path_list.append(zope_conf_path)
......
# TIDStorage connection
<product-config TIDStorage>
backend-ip %(host)s
backend-port %(port)s
</product-config>
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