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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kwabena Antwi-Boasiako
slapos
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
Hide 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 @@
#
##############################################################################
from
slapos.recipe.librecipe
import
GenericBaseRecipe
import
os
class
Recipe
(
GenericBaseRecipe
):
"""
...
...
@@ -57,9 +58,16 @@ class Recipe(GenericBaseRecipe):
# Prepare all filestorages
filestorage_snippet
=
""
for
storage_name
in
self
.
options
[
'storage'
].
split
():
storage_path
=
os
.
path
.
join
(
zodb_directory_path
,
'%s.fs'
%
storage_name
)
for
storage_definition
in
self
.
options
[
'storage'
].
splitlines
():
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
(
snippet_filename
,
dict
(
storage_name
=
storage_name
,
path
=
storage_path
))
...
...
@@ -81,6 +89,7 @@ class Recipe(GenericBaseRecipe):
wrapper_path
=
self
.
createPythonScript
(
self
.
options
[
'wrapper-path'
],
'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
]
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