This class can be used by front ends to keep track of the
configlets. It contains helper functions for doing operations
on all of the configlets we know about. It should be usable as
it is, or one can inherit from it to change or add functionality.
Methods
|
|
|
|
__getitem__
|
__getitem__ ( self, key )
Retrieve an individual configlet by index.
|
|
__getslice__
|
__getslice__ (
self,
i,
j,
)
Retrieve several adjacent configlets in the group.
|
|
__init__
|
__init__ ( self, dir="/usr/share/configlets" )
Initialize the config group.
Sets things up, and load the configlets in the (optional)
directory specified.
|
|
__len__
|
__len__ ( self )
Return the number of configlets in the group.
|
|
debug
|
debug ( self, message )
|
|
error
|
error ( self, message )
|
|
get_debconf
|
get_debconf ( self )
Get the debconf interface object in use by the group.
|
|
gnome_setup
|
gnome_setup ( self )
Cause all configlets to set themselves up.
|
|
load_all_debconf
|
load_all_debconf ( self )
Load debconf info and send it to the configlets in one shot.
|
|
load_debconf
|
load_debconf ( self, data )
Pass the debconf data to all configlets for use.
|
|
on_gnome_close
|
on_gnome_close ( self )
Notify all configlets that they will be closing.
|
|
privileged_run
|
privileged_run ( self, command )
Run a command with privilege using the current runner class.
|
|
report_debconf
|
report_debconf ( self )
Retrieve all changed debconf information from all configlets.
|
|
save_and_commit_all_debconf
|
save_and_commit_all_debconf ( self )
Get debconf info from the configlets, save it, and commit.
|
|
set_privileged_runner
|
set_privileged_runner ( self, runner )
Set privileged runner class for the debconf object.
|
|
validate
|
validate ( self )
Validate all configlets in the group.
|
|
warn
|
warn ( self, message )
|