Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
slapos-mynij-dev
Commits
244570f0
Commit
244570f0
authored
Oct 19, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make zeo working a bit.
parent
afe4dc75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
slapos/recipe/zeo/__init__.py
slapos/recipe/zeo/__init__.py
+13
-4
No files found.
slapos/recipe/zeo/__init__.py
View file @
244570f0
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#
#
##############################################################################
##############################################################################
from
slapos.recipe.librecipe
import
GenericBaseRecipe
from
slapos.recipe.librecipe
import
GenericBaseRecipe
import
os
class
Recipe
(
GenericBaseRecipe
):
class
Recipe
(
GenericBaseRecipe
):
"""
"""
...
@@ -57,9 +58,16 @@ class Recipe(GenericBaseRecipe):
...
@@ -57,9 +58,16 @@ class Recipe(GenericBaseRecipe):
# Prepare all filestorages
# Prepare all filestorages
filestorage_snippet
=
""
filestorage_snippet
=
""
for
storage_name
in
self
.
options
[
'storage'
].
split
():
for
storage_definition
in
self
.
options
[
'storage'
].
splitlines
():
storage_path
=
os
.
path
.
join
(
zodb_directory_path
,
'%s.fs'
%
storage_name
)
storage_definition
=
storage_definition
.
strip
()
if
not
storage_definition
:
continue
for
q
in
storage_definition
.
split
():
if
'storage-name'
in
q
:
storage_name
=
q
.
split
(
'='
)[
1
].
strip
()
if
'zodb-name'
in
q
:
zodb_name
=
q
.
split
(
'='
)[
1
].
strip
()
storage_path
=
os
.
path
.
join
(
zodb_directory_path
,
'%s.fs'
%
zodb_name
)
filestorage_snippet
+=
self
.
substituteTemplate
(
filestorage_snippet
+=
self
.
substituteTemplate
(
snippet_filename
,
dict
(
storage_name
=
storage_name
,
path
=
storage_path
))
snippet_filename
,
dict
(
storage_name
=
storage_name
,
path
=
storage_path
))
...
@@ -81,6 +89,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -81,6 +89,7 @@ class Recipe(GenericBaseRecipe):
wrapper_path
=
self
.
createPythonScript
(
wrapper_path
=
self
.
createPythonScript
(
self
.
options
[
'wrapper-path'
],
self
.
options
[
'wrapper-path'
],
'slapos.recipe.librecipe.execute.execute'
,
'slapos.recipe.librecipe.execute.execute'
,
arguments
=
[
self
.
options
[
'binary-path'
].
strip
(),
'-C'
,
zeo_conf_path
],
arguments
=
[
self
.
options
[
'binary-path'
].
strip
(),
'-C'
,
self
.
options
[
'conf-path'
]],)
return
[
configuration_path
,
wrapper_path
]
return
[
configuration_path
,
wrapper_path
]
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