示例#1
0
文件: manager.py 项目: GNOME/wiican
    def __init__(self):
        """Gets the single mapping manager instance"""
        
        Singleton.__init__(self)
        GConfStore.__init__(self, GCONF_KEY)

        self.home_path = MAPPINGS_HOME_DIR
        self.system_paths = MAPPINGS_BASE_DIR

        if not type(self.system_paths) is list:
            self.system_paths = [self.system_paths]

        self.__mapping_bag = {}
        self.loadconf(only_defaults=True)
        self.options['mapping_visible'] = set(self.options['mapping_visible'])
示例#2
0
文件: __init__.py 项目: GNOME/wiican
 def loadconf(self):
     GConfStore.loadconf(self, only_defaults=True)
示例#3
0
文件: __init__.py 项目: GNOME/wiican
 def __init__(self):
     Singleton.__init__(self)
     GConfStore.__init__(self, GCONF_KEY)