Example #1
0
    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'])
Example #2
0
 def loadconf(self):
     GConfStore.loadconf(self, only_defaults=True)
Example #3
0
 def __init__(self):
     Singleton.__init__(self)
     GConfStore.__init__(self, GCONF_KEY)