1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
<chapter id="ch-architecture">
<chapterinfo>
<releaseinfo>$Progeny: architecture.xml,v 1.17 2002/01/18 06:19:44 dsp Exp $</releaseinfo>
</chapterinfo>
<title>Architecture</title>
<section id="sec-components">
<title>Components</title>
<para>
Package maintainers may provide <filename>main.py</filename> and
<filename>main.glade</filename> files to take advantage of the
configlet infrastructure; see the <ulink url="api/index.html">API
documentation</ulink> for further details.
</para>
<para>
<filename>/usr/sbin/update-configlets</filename> invokes scripts
installed by any existing configlet front ends in order to register
new configlets.
</para>
<para>
A &gnome; configlet druid, <filename>/usr/sbin/configlet-druid</filename>,
provides a front-end <emphasis>wizard</emphasis> for all installed
configlets.
</para>
<para>
The configlet module is the only component which may communicate
directly with &debconf;; it does so via
<command>debconf-communicate(1)</command>.
</para>
<para>
<filename>/usr/bin/configlet-capplet</filename> is symlinked to
configlet-specific scripts that are invoked by the &gnome; Control
Center.
</para>
<para>
The important Python classes to be re-used by
<filename>configlet-druid</filename> and code supplied by package
maintainers is found in
<filename>/usr/lib/python2.1/site-packages/configlet.py</filename>.
</para>
<para>
<filename>configlet.py</filename> contains the <ulink
url="api/configlet_Configlet.py.html"><classname>Configlet</classname></ulink>
base class, which individual configlets inherit from, as well as a
simple container class which implements basic functionality for
dynamically loading and instantiating configlets installed as
subdirectories of a common configlet directory.
</para>
<para>
<filename>/usr/bin/test-configlets</filename> is a simple configlet
front-end.
</para>
</section>
</chapter>
<!-- Local variables: -->
<!-- eval: (sgml-load-dtd "../../doctools/docbook.ced") -->
<!-- End: -->
|