validator set to false for read_write in setting

This commit is contained in:
gwen 2013-02-06 14:34:12 +01:00
parent 2cb3ddf2e8
commit d00a623fc1
1 changed files with 3 additions and 0 deletions

View File

@ -145,6 +145,7 @@ class Setting():
def read_only(self): def read_only(self):
"convenience method to freeze, hidde and disable" "convenience method to freeze, hidde and disable"
# FIXME LE FREEZE NE MARCHE PAS
self.freeze() self.freeze()
self.disable_property('hidden') self.disable_property('hidden')
self.enable_property('disabled') self.enable_property('disabled')
@ -153,10 +154,12 @@ class Setting():
def read_write(self): def read_write(self):
"convenience method to freeze, hidde and disable" "convenience method to freeze, hidde and disable"
# FIXME : POURQUOI UN FREEZE ICI ?
self.freeze() self.freeze()
self.enable_property('hidden') self.enable_property('hidden')
self.enable_property('disabled') self.enable_property('disabled')
self.mandatory = False self.mandatory = False
self.validator = False
def non_mandatory(self): def non_mandatory(self):
"""mandatory at the Config level means that the Config raises an error """mandatory at the Config level means that the Config raises an error