コード例 #1
0
ファイル: VarManager.py プロジェクト: Ariequ/Projeny
 def getAllParameters(self):
     matches = self._config.getAll('PathVars')
     result = self._params.copy()
     for match in matches:
         assertIsType(match, dict)
         result = Util.mergeDictionaries(result, match)
     return result
コード例 #2
0
ファイル: VarManager.py プロジェクト: wyb314/Projeny
 def getAllParameters(self):
     matches = self._config.getAll('PathVars')
     result = self._params.copy()
     for match in matches:
         assertIsType(match, dict)
         result = Util.mergeDictionaries(result, match)
     return result
コード例 #3
0
ファイル: Config.py プロジェクト: AcamTech/Zenject
    def tryGetDictionary(self, fallback, *args):
        matches = self.getAll(*args)

        if len(matches) == 0:
            return fallback

        result = {}

        for match in matches:
            assertIsType(match, dict, "Unexpected type for yaml property '{0}'", self._propNameToString(args))
            result = Util.mergeDictionaries(result, match)

        return result
コード例 #4
0
ファイル: Config.py プロジェクト: tinyogre/Projeny
    def tryGetDictionary(self, fallback, *args):
        matches = self.getAll(*args)

        if len(matches) == 0:
            return fallback

        result = {}

        for match in matches:
            assertIsType(match, dict, "Unexpected type for yaml property '{0}'", self._propNameToString(args))
            result = Util.mergeDictionaries(result, match)

        return result