An encapsulation of the database which maintains an association
between users and profiles.
This database is stored by default in
$(sysconfdir)/sabayon/profiles/users.xml and contains a list of users and
the profile associated with each of those users.
A profile can be reference by either its name (in which case the
profile is stored at /etc/sabayon/profiles/$(name).zip), an absolute path
or a http/file URL.
|
__init__(self,
db_file=None)
Create a SystemDatabase object.
|
|
__del__(self)
|
|
__profile_name_to_location(self,
profile,
node)
|
|
__open_ldap(self)
|
|
__ldap_query(self,
map,
replace)
|
|
get_default_profile(self,
profile_location=True)
Look up the default profile.
|
|
gen_get_profile(self,
searchterm,
replace,
profile_location=True,
ignore_default=False)
Look up the profile for a given searchterm.
|
|
__save_as(self,
filename=None)
|
|
set_default_profile(self,
profile)
Set the default profile to be used in this database.
|
|
gen_set_profile(self,
searchterm,
child,
profile)
Set the profile for a given searchterm.
|
|
gen_is_sabayon_controlled(self,
searchterm,
replace)
Return True if user's configuration was ever under Sabayon's
control.
|
|
get_profiles(self)
Return the list of currently available profiles.
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|