[WIP] consider SEA config in frappy(..) command
This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user