This repository was archived by the owner on Apr 26, 2023. It is now read-only.
This repository was archived by the owner on Apr 26, 2023. It is now read-only.
reuse protocol form definition #379
Open
Description
it will reduce performance to 2/3 but needs to be tested properly.
The approach tested is:
at protocol.py:
1.- declare a dictionary to hold the form definition at class level (Static)
__FORM_DICT__ = {}
2.- Load the form definition is not in the dictionary:
Inside the init:
self._definition = self.__FORM_DICT__.get(self.getClassName(), None)
if self._definition is None:
self._definition = Form(self)
self._defineParams(self._definition)
self.__FORM_DICT__[self.getClassName()] = self._definition
This works fine but there is a problem with Params that need to react to other params changes: e.g.: protocol_ctf_assign.py has a inputSetsParam that needs to change base on inputType