Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SlapOS Develop
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
Eric Zheng
SlapOS Develop
Commits
8b1d5252
Commit
8b1d5252
authored
Oct 02, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new buildout, do not call loads()
parent
9c92ba8f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
slapos/recipe/postgres/__init__.py
slapos/recipe/postgres/__init__.py
+1
-6
stack/slapos.cfg
stack/slapos.cfg
+1
-1
No files found.
slapos/recipe/postgres/__init__.py
View file @
8b1d5252
...
@@ -34,8 +34,6 @@ from zc.buildout import UserError
...
@@ -34,8 +34,6 @@ from zc.buildout import UserError
from
slapos.recipe.librecipe
import
GenericBaseRecipe
from
slapos.recipe.librecipe
import
GenericBaseRecipe
# TODO: read ipv6 host without calling loads()
class
Recipe
(
GenericBaseRecipe
):
class
Recipe
(
GenericBaseRecipe
):
"""
\
"""
\
...
@@ -56,12 +54,9 @@ class Recipe(GenericBaseRecipe):
...
@@ -56,12 +54,9 @@ class Recipe(GenericBaseRecipe):
Returns a string represtation of ipv6_host.
Returns a string represtation of ipv6_host.
May receive a regular string, a set or a string serialized by buildout.
May receive a regular string, a set or a string serialized by buildout.
"""
"""
from
zc.buildout
import
buildout
ipv6_host
=
options
[
'ipv6_host'
]
ipv6_host
=
options
[
'ipv6_host'
]
if
ipv6_host
.
startswith
(
buildout
.
SERIALISED_VALUE_MAGIC
):
if
isinstance
(
ipv6_host
,
set
):
return
buildout
.
loads
(
ipv6_host
).
pop
()
elif
isinstance
(
ipv6_host
,
set
):
return
ipv6_host
.
pop
()
return
ipv6_host
.
pop
()
else
:
else
:
return
ipv6_host
return
ipv6_host
...
...
stack/slapos.cfg
View file @
8b1d5252
...
@@ -59,7 +59,7 @@ eggs =
...
@@ -59,7 +59,7 @@ eggs =
[versions]
[versions]
# Use SlapOS patched zc.buildout
# Use SlapOS patched zc.buildout
zc.buildout = 1.6.0-dev-SlapOS-0
07
zc.buildout = 1.6.0-dev-SlapOS-0
10
[networkcache]
[networkcache]
download-cache-url = http://www.shacache.org/shacache
download-cache-url = http://www.shacache.org/shacache
...
...
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