コード例 #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)