correct to readonly=False for target parameter

This commit is contained in:
zolliker 2021-06-08 11:59:02 +02:00
parent eaac83e4d5
commit 3977fad3f3

View File

@ -373,7 +373,7 @@ class SeaModule(Module):
if paramdesc.get('readonly', True): if paramdesc.get('readonly', True):
raise ConfigError('%s/%s is not writable' % (sea_object, paramdesc['path'])) raise ConfigError('%s/%s is not writable' % (sea_object, paramdesc['path']))
paramdesc['key'] = 'target' paramdesc['key'] = 'target'
paramdesc['readonly'] = True paramdesc['readonly'] = False
extra_module_set = () extra_module_set = ()
if 'description' not in cfgdict: if 'description' not in cfgdict:
cfgdict['description'] = '%s@%s' % (single_module, json_file) cfgdict['description'] = '%s@%s' % (single_module, json_file)
@ -481,7 +481,7 @@ class SeaModule(Module):
pobj = Parameter(**kwds) pobj = Parameter(**kwds)
datatype = pobj.datatype datatype = pobj.datatype
if issubclass(cls, SeaWritable) and key == 'target': if issubclass(cls, SeaWritable) and key == 'target':
kwds['readonly'] = True kwds['readonly'] = False
attributes['value'] = Parameter(**kwds) attributes['value'] = Parameter(**kwds)
hdbpath = '/'.join([base] + pathlist) hdbpath = '/'.join([base] + pathlist)