Package sabayon :: Module systemdb :: Class UserDatabase
[hide private]
[frames] | no frames]

Class UserDatabase

source code


Encapsulate a user mapping

Instance Methods [hide private]
  __init__(self, db_file=None)
Create a SystemDatabase object.
  get_profile(self, username, profile_location=True, ignore_default=False)
  is_sabayon_controlled(self, username)
  set_profile(self, username, profile)
  get_users(self)
Return the list of users on the system.

Inherited from SystemDatabase: __del__, gen_get_profile, gen_is_sabayon_controlled, gen_set_profile, get_default_profile, get_profiles, set_default_profile

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, db_file=None)
(Constructor)

source code 
Create a SystemDatabase object.
Overrides: SystemDatabase.__init__
(inherited documentation)

get_profile(self, username, profile_location=True, ignore_default=False)

source code 
None

is_sabayon_controlled(self, username)

source code 
None

set_profile(self, username, profile)

source code 
None

get_users(self)

source code 
Return the list of users on the system. These should be real users - i.e. should not include system users like nobody, gdm, nfsnobody etc.