params: Prevent people from setting attributes on vector params.
This commit is contained in:
parent
6dedc645f7
commit
b429b1759d
|
@ -166,6 +166,10 @@ class ParamDesc(object):
|
||||||
|
|
||||||
class VectorParamValue(list):
|
class VectorParamValue(list):
|
||||||
__metaclass__ = MetaParamValue
|
__metaclass__ = MetaParamValue
|
||||||
|
def __setattr__(self, attr, value):
|
||||||
|
raise AttributeError, \
|
||||||
|
"Not allowed to set %s on '%s'" % (attr, type(self).__name__)
|
||||||
|
|
||||||
def ini_str(self):
|
def ini_str(self):
|
||||||
return ' '.join([v.ini_str() for v in self])
|
return ' '.join([v.ini_str() for v in self])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue