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
Hardik Juneja
slapos
Commits
ae14afb2
Commit
ae14afb2
authored
Dec 31, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recipe-zeroknown: no longer trust install/update methods
parent
ec580565
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
slapos/recipe/zeroknown.py
slapos/recipe/zeroknown.py
+4
-7
No files found.
slapos/recipe/zeroknown.py
View file @
ae14afb2
...
@@ -57,11 +57,12 @@ class WriteRecipe(GenericBaseRecipe):
...
@@ -57,11 +57,12 @@ class WriteRecipe(GenericBaseRecipe):
with
open
(
self
.
path
,
'w'
)
as
file
:
with
open
(
self
.
path
,
'w'
)
as
file
:
self
.
parser
.
write
(
file
)
self
.
parser
.
write
(
file
)
# If the file or section do not exist
# If the file or section do not exist
except
ConfigParser
.
NoSectionError
,
IOError
:
except
(
ConfigParser
.
NoSectionError
,
IOError
)
as
e
:
self
.
install
()
self
.
full_
install
()
install
=
update
=
lambda
self
:
[]
def
install
(
self
):
def
full_
install
(
self
):
"""XXX-Nicolas : when some parameter's value is changed in
"""XXX-Nicolas : when some parameter's value is changed in
buildout profile, this will override custom user defined values"""
buildout profile, this will override custom user defined values"""
self
.
parser
.
read
(
self
.
path
)
self
.
parser
.
read
(
self
.
path
)
...
@@ -74,10 +75,6 @@ class WriteRecipe(GenericBaseRecipe):
...
@@ -74,10 +75,6 @@ class WriteRecipe(GenericBaseRecipe):
self
.
parser
.
write
(
file
)
self
.
parser
.
write
(
file
)
def
update
(
self
):
pass
class
ReadRecipe
(
GenericBaseRecipe
):
class
ReadRecipe
(
GenericBaseRecipe
):
"""
"""
"""
"""
...
...
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