Example #1
0
    def _mergerConfToDict(conf):
        systemInterface = Core.getConfInterface(conf)

        result = {}

        u'获取所有大类的 key '
        sections = systemInterface.getConfSections()

        for curSection in sections:

            u'大类下的小类'
            curOptions = systemInterface.getConfOptions(curSection)

            sectionResult = {}
            for curKey in curOptions:
                sectionResult[curKey] = systemInterface.getConf(
                    curSection, curKey)

            result[curSection] = sectionResult

        return result