def _verifyDefault(self, type, value): params = defaultArchitecture.find_params(self.__class__)[2] info = params.get(type, {}) if not info: raise ConfigFileException("Unknown Default on '%s': %s" % (self.id, type)) else: t = info.get('type', 0) if t: return t(value) else: return value
def _verifyDefault(self, type, value): params = defaultArchitecture.find_params(self.__class__)[2] info = params.get(type, {}) if not info: msg = "Unknown Default on '%s': %s" % (self.id, type) raise ConfigFileException(msg) else: t = info.get('type', 0) if t: return t(value) else: return value
def _verifySetting(self, type, value): params = defaultArchitecture.find_params(self.__class__)[1] info = params.get(type, {}) if not info: msg = "Unknown Setting on '%s': %s" % (self.id, type) raise ConfigFileException(msg) else: t = info.get('type', 0) if t: return t(value) else: return value
def _verifySetting(self, type, value): params = defaultArchitecture.find_params(self.__class__)[1] info = params.get(type, {}) if not info: raise ConfigFileException("Unknown Setting on '%s': %s" % (self.id, type)) else: t = info.get('type', 0) if t: return t(value) else: return value