Utils

mod:

Utils

Module that collects utility functions.

DIRAC.ResourceStatusSystem.Utilities.Utils.configMatch(candidateParams, configParams)

For a given configuration, the candidate will be rejected if:

  • it is missing at least one of the params in the config

  • if a param of the candidate does not match the config params

  • if a candidate param is None, is considered as wildcard

DIRAC.ResourceStatusSystem.Utilities.Utils.getCSTree(csPath='')

Gives the configuration rooted at path in a Python dict. The result is a Python dictionary that reflects the structure of the configuration file.

DIRAC.ResourceStatusSystem.Utilities.Utils.voimport(base_mod)

Function to import from extensions, if not found, tries from DIRAC.