Logo Search packages:      
Sourcecode: sabayon version File versions  Download package

def lib::userprofile::UserProfile::__init__ (   self,
  profile_name 
)

Construct a UserProfile

	profile_name: name of the profile to be loaded
module_path: optional path from which configuration modules
should be loaded

Definition at line 306 of file userprofile.py.

00306                                      :
        """Construct a UserProfile

      profile_name: name of the profile to be loaded
        module_path: optional path from which configuration modules
        should be loaded
        """
        gobject.GObject.__init__ (self)

        dprint ("Constructing profile from %s", profile_name)

        self.profile_name = profile_name

        #
      # Open the user settings packages and try to install them
      #
      self.storage = storage.ProfileStorage (profile_name)
        
        module_loader = get_module_loader ()
        
        self.sources = []
        self.sources = module_loader.construct_objects ("get_source", self.storage)
        dprint ("%d sources loaded:", len (self.sources))
        for source in self.sources:
            dprint ("  %s", source.get_name ())
            source.connect ("changed", self.__handle_source_changed)

    def __handle_source_changed (self, source, change):


Generated by  Doxygen 1.6.0   Back to index