Table of Contents

Class: BasicConfigGroup ../../configlet.py

Base class for a configlet container class.

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__
__getslice__
__init__
__len__
debug
error
get_debconf
gnome_setup
load_all_debconf
load_debconf
on_gnome_close
privileged_run
report_debconf
save_and_commit_all_debconf
set_privileged_runner
validate
warn
  __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 )


Table of Contents

This document was automatically generated on Mon Apr 15 13:20:44 2002 by HappyDoc version 2.0