Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
04925f05
Commit
04925f05
authored
Aug 30, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! stack/erp5: enable server-sync for ZEO
parent
3bd9d702
Pipeline
#23176
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
software/erp5/test/test/test_erp5.py
software/erp5/test/test/test_erp5.py
+4
-2
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+1
-1
stack/erp5/zope.conf.in
stack/erp5/zope.conf.in
+2
-2
No files found.
software/erp5/test/test/test_erp5.py
View file @
04925f05
...
@@ -364,16 +364,18 @@ class TestZopeNodeParameterOverride(ERP5InstanceTestCase, TestPublishedURLIsReac
...
@@ -364,16 +364,18 @@ class TestZopeNodeParameterOverride(ERP5InstanceTestCase, TestPublishedURLIsReac
zodb
[
"mount-point"
]
=
"/"
zodb
[
"mount-point"
]
=
"/"
zodb
[
"pool-size"
]
=
4
zodb
[
"pool-size"
]
=
4
zodb
[
"pool-timeout"
]
=
"10m"
zodb
[
"pool-timeout"
]
=
"10m"
zodb
[
"%import"
]
=
"ZEO"
storage
[
"storage"
]
=
"root"
storage
[
"storage"
]
=
"root"
storage
[
"server"
]
=
zeo_addr
storage
[
"server"
]
=
zeo_addr
storage
[
"server-sync"
]
=
"true"
with
open
(
'%s/etc/zope-%s.conf'
%
(
partition
,
zope
))
as
f
:
with
open
(
'%s/etc/zope-%s.conf'
%
(
partition
,
zope
))
as
f
:
conf
=
list
(
map
(
str
.
strip
,
f
.
readlines
()))
conf
=
list
(
map
(
str
.
strip
,
f
.
readlines
()))
i
=
conf
.
index
(
"<zodb_db root>"
)
+
1
i
=
conf
.
index
(
"<zodb_db root>"
)
+
1
conf
=
iter
(
conf
[
i
:
conf
.
index
(
"</zodb_db>"
,
i
)])
conf
=
iter
(
conf
[
i
:
conf
.
index
(
"</zodb_db>"
,
i
)])
for
line
in
conf
:
for
line
in
conf
:
if
line
==
'<
zeoclient
>'
:
if
line
==
'<
clientstorage
>'
:
for
line
in
conf
:
for
line
in
conf
:
if
line
==
'</
zeoclient
>'
:
if
line
==
'</
clientstorage
>'
:
break
break
checkParameter
(
line
,
storage
)
checkParameter
(
line
,
storage
)
for
k
,
v
in
six
.
iteritems
(
storage
):
for
k
,
v
in
six
.
iteritems
(
storage
):
...
...
stack/erp5/buildout.hash.cfg
View file @
04925f05
...
@@ -34,7 +34,7 @@ md5sum = 45cc45510b59ceb730b6e38448b5c0c3
...
@@ -34,7 +34,7 @@ md5sum = 45cc45510b59ceb730b6e38448b5c0c3
[template-zope-conf]
[template-zope-conf]
filename = zope.conf.in
filename = zope.conf.in
md5sum =
b524c9ef4d7deadfd4bd84f2e880f9ed
md5sum =
7c82d4c49e01a72a173f2bc66f1524d6
[site-zcml]
[site-zcml]
filename = site.zcml
filename = site.zcml
...
...
stack/erp5/zope.conf.in
View file @
04925f05
...
@@ -132,9 +132,9 @@ trusted-proxy 0.0.0.0
...
@@ -132,9 +132,9 @@ trusted-proxy 0.0.0.0
{% set type_dict = {'neo': 'NEOStorage', 'zeo': 'clientstorage'} %}
{% set type_dict = {'neo': 'NEOStorage', 'zeo': 'clientstorage'} %}
{% for name, zodb_dict in six.iteritems(parameter_dict['zodb-dict']) %}
{% for name, zodb_dict in six.iteritems(parameter_dict['zodb-dict']) %}
<zodb_db {{ name }}>
<zodb_db {{ name }}>
{% if zodb_dict['type'] == 'zeo' %}
{%
-
if zodb_dict['type'] == 'zeo' %}
%import ZEO
%import ZEO
{% endif %}
{%
-
endif %}
{%- set storage_type = type_dict[zodb_dict.pop('type')] %}
{%- set storage_type = type_dict[zodb_dict.pop('type')] %}
{%- set storage_dict = zodb_dict.pop('storage-dict') %}
{%- set storage_dict = zodb_dict.pop('storage-dict') %}
{%- do root_common.apply_overrides(zodb_dict, node_id) %}
{%- do root_common.apply_overrides(zodb_dict, node_id) %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment