diff --git a/secop_psi/sea.py b/secop_psi/sea.py index 03929a6..e35af10 100644 --- a/secop_psi/sea.py +++ b/secop_psi/sea.py @@ -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()