Package sabayon :: Module userprofile :: Class UserProfile
[hide private]
[frames] | no frames]

Class UserProfile

source code


An encapsulation of the user profile and backend sources.

Instance Methods [hide private]
  __init__(self, profile_name)
Construct a UserProfile
  __handle_source_changed(self, source, change)
  get_source(self, source_name)
Return a source named @source_name.
  get_delegate(self, delegate_name)
Return a delegate named @delegate_name.
  start_monitoring(self)
Start monitoring for configuration changes.
  stop_monitoring(self)
Stop monitoring for configuration changes.
  sync_changes(self)
Save all committed changes to disk.
  set_enforce_mandatory(self, enforce)
Temporary make mandatory setting non-mandatory.
  apply(self, is_sabayon_session)
Apply profile to the current user's environment.

Class Variables [hide private]
  __gsignals__ = {"changed":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NO...

Method Details [hide private]

__init__(self, profile_name)
(Constructor)

source code 

Construct a UserProfile

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

__handle_source_changed(self, source, change)

source code 
None

get_source(self, source_name)

source code 
Return a source named @source_name.

get_delegate(self, delegate_name)

source code 
Return a delegate named @delegate_name.

start_monitoring(self)

source code 
Start monitoring for configuration changes.

stop_monitoring(self)

source code 
Stop monitoring for configuration changes.

sync_changes(self)

source code 
Save all committed changes to disk.

set_enforce_mandatory(self, enforce)

source code 
Temporary make mandatory setting non-mandatory.

apply(self, is_sabayon_session)

source code 
Apply profile to the current user's environment.

Class Variable Details [hide private]

__gsignals__

None
Value:
{"changed":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (ProfileChange
,))}