示例#1
0
文件: config.py 项目: metux/kmct
    def get_kconf_all(self):
        allconf = (set_from(self.cf, 'kconf-enable')
                   | set_from(self.cf, 'kconf-module')
                   | dict_keys_from(self.cf, 'kconf-setting'))

        for x in self.features:
            allconf |= self.features[x].get_kconf_all()

        for x in self.imports:
            allconf |= self.imports[x].get_kconf_all()

        return allconf
示例#2
0
文件: config.py 项目: metux/kmct
 def get_recursive_set(self, name):
     lst = set_from(self.cf, name)
     for i in self.imports:
         lst |= self.imports[i].get_recursive_set(name)
     return lst
示例#3
0
文件: config.py 项目: metux/kmct
 def get_feature_enable(self):
     return set_from(self.cf, 'feature-enable')
示例#4
0
文件: config.py 项目: metux/kmct
 def get_on_feature(self):
     return set_from(self.cf, 'on-feature')
示例#5
0
文件: config.py 项目: metux/kmct
 def get_kconf_all(self):
     return (set_from(self.cf, 'kconf-enable')
             | set_from(self.cf, 'kconf-module')
             | dict_keys_from(self.cf, 'kconf-setting'))
示例#6
0
文件: config.py 项目: metux/kmct
 def get_kconf_module(self):
     return set_from(self.cf, 'kconf-module')
示例#7
0
文件: config.py 项目: metux/kmct
 def get_kconf_enable(self):
     return set_from(self.cf, 'kconf-enable')