[WIP] consider SEA config in frappy(..) command

This commit is contained in:
2023-09-11 08:24:29 +02:00
parent 59eaa39cd4
commit 9d6baa191e
2 changed files with 42 additions and 14 deletions

View File

@ -247,6 +247,10 @@ class FrappyNode(SecNodeDevice, Moveable):
super().doInit(mode)
def doRead(self, maxage=0):
try:
return self.secnode.descriptive_data['_frappy_config']
except (KeyError, AttributeError):
pass
if self._cfgvalue is None and self._cache:
self._cfgvalue = self._cache.get(self, 'value')
return self._cfgvalue
@ -264,12 +268,14 @@ class FrappyNode(SecNodeDevice, Moveable):
@classmethod
def config_dirs(cls, ins, service):
# TODO: no more needed after allowing ~cfg in FrappyManager.do_start
sm = cls._service_manager
sm.get_info()
return sm.config_dirs(ins, service)
@classmethod
def available_cfg(cls, service):
# TODO: no more needed after allowing ~cfg in FrappyManager.do_start
ins = config.instrument
available_cfg = set()
for d in cls.config_dirs(ins, service):