has_callback options cannot be overrided

This commit is contained in:
gwen
2012-09-18 15:25:35 +02:00
parent 1ce8d4c098
commit c70fc04f3a
4 changed files with 9 additions and 2 deletions

View File

@ -337,6 +337,9 @@ class Config(object):
else:
newowner = who
if type(child) != SymLinkOption:
if child.has_callback():
raise TypeError("trying to set a value to an option "
"wich has a callback: {0}".format(name))
# if oldowner == who:
# oldvalue = getattr(self, name)
# if oldvalue == value: