handle non Readable SeaModules correctly

Change-Id: I5fa0a52926af3bb386c18de49fef9b1caba92e79
This commit is contained in:
zolliker 2021-05-19 17:54:36 +02:00
parent 70c3f5f37f
commit 5f65b6b4ce

View File

@ -324,6 +324,7 @@ class SeaConfigCreator(SeaClient):
result.append('%s: %s' % (filename, ','.join(n for n in descr)))
raise SystemExit('; '.join(result))
SEA_TO_SECOPTYPE = {
'float': FloatRange(),
'text': StringType(),
@ -391,8 +392,11 @@ class SeaModule(Module):
if rel_paths == '*' or not rel_paths:
# take all
main = descr['params'][0]
# assert main['path'] == '' # TODO: check cases where this fails
main['key'] = 'value'
if isinstance(cls, Readable):
# assert main['path'] == '' # TODO: check cases where this fails
main['key'] = 'value'
else:
descr['params'].pop(0)
else:
# filter by relative paths
rel_paths = rel_paths.split()