Commit ae14afb2 authored by Nicolas Wavrant's avatar Nicolas Wavrant

recipe-zeroknown: no longer trust install/update methods

parent ec580565
...@@ -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):
""" """
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment