def reInit(self): if self.is_initialized(): return # dict<str, RecorderLibrary> # key - module name (without path and without extension) # value - RecorderLibrary object representing the module self._modules = {} #: dict<str, <metarecorder.RecorderClass> #: key - recorder name #: value - RecorderClass object representing the recorder self._recorder_dict = {} # list<str> # elements are absolute paths self._recorder_path = [] # custom map (per installation) allowing to avoid # recorder class ambiguity problems (using extension filter) #: dict<str, str> #: key - scan file extension #: value - recorder name self._custom_scan_recorder_map = getattr(sardanacustomsettings, "SCAN_RECORDER_MAP", None) #: dict<str, str> #: key - scan file extension #: value - list with recorder name(s) self._scan_recorder_map = {} MacroServerManager.reInit(self)
def reInit(self): if self.is_initialized(): return # dict<str, dict<str,class<ParamType>> # key - module name (without path and without extension) # value - a dict where: # key - type name # value - class object implementing the Type self._modules = {} # dict<str, ParamType> # key - type name # value - object which inherits from ParamType self._inst_dict = {} path = [self.DEFAULT_TYPE_DIR] for type_module in self.DEFAULT_TYPE_MODULES: self.reloadTypeModule(type_module, path=path) MacroServerManager.reInit(self)
def reInit(self): """(Re)initializes the manager""" if self.is_initialized(): return # a string containing the absolute filename containing the environment self._env_name = None # the full enviroment (a shelf for now - can be accessed as a dict) self._env = None # cache environment for keys that start with door name # dict<string, dict<string, value> > where: # - key: door name # - value: dict where: # - key: environment name # - value: environment value self._door_env = None # cache environment for keys that start with macro name # dict<string, dict<string, value> > where: # - key: macro name # - value: dict where: # - key: environment name # - value: environment value self._macro_env = None # cache environment for global keys # dict<string, value> where: # - key: environment name # - value: environment value self._global_env = None self._initEnv() MacroServerManager.reInit(self)