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