def __init__(self, name, configPath, config, niceLevel=None, pathAttr=None): assert config != None self._name = name self._configPath = configPath self._config = config self._niceLevel = niceLevel self._pathAttr = pathAttr # For now only use the configPath property in the digest self._digest = utils.digestParameters(self._name, self._configPath, self._niceLevel, self._pathAttr)
def __init__(self, props): self._properties = copy.deepcopy(props) self._digest = utils.digestParameters(self._properties)