diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-19 11:40:52 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-20 11:37:55 -0400 |
commit | 92bc95f86a834b2853c77bbbfa1c0021213e1e17 (patch) | |
tree | fd0445f1434495e8cc7fc13af553889285d168a6 /src/lib/Bcfg2/Server/Plugin/interfaces.py | |
parent | 52cee5a20d6981e35b9df1c7438dffd1210f5a78 (diff) | |
download | bcfg2-92bc95f86a834b2853c77bbbfa1c0021213e1e17.tar.gz bcfg2-92bc95f86a834b2853c77bbbfa1c0021213e1e17.tar.bz2 bcfg2-92bc95f86a834b2853c77bbbfa1c0021213e1e17.zip |
documented Packages base class
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugin/interfaces.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugin/interfaces.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/Server/Plugin/interfaces.py b/src/lib/Bcfg2/Server/Plugin/interfaces.py index ea0b50233..59f3636fb 100644 --- a/src/lib/Bcfg2/Server/Plugin/interfaces.py +++ b/src/lib/Bcfg2/Server/Plugin/interfaces.py @@ -10,6 +10,7 @@ from Bcfg2.Compat import Queue, Empty, Full, cPickle from exceptions import * from base import Plugin + class Generator(object): """ Generator plugins contribute to literal client configurations. That is, they generate entry contents. @@ -46,7 +47,7 @@ class Generator(object): return False def HandleEntry(self, entry, metadata): - """ HandlesEntry is the slow path method for binding + """ HandleEntry is the slow path method for binding configuration binding requests. It is called if the ``Entries`` dict does not contain a method for binding the entry, and :func:`HandlesEntry` @@ -230,7 +231,7 @@ class Connector(object): :param metadata: The client metadata :type metadata: Bcfg2.Server.Plugins.Metadata.ClientMetadata - :return: list of strings + :return: dict """ return dict() @@ -473,8 +474,9 @@ class StructureValidator(object): :param metadata: The client metadata :type metadata: Bcfg2.Server.Plugins.Metadata.ClientMetadata :param config: A list of lxml.etree._Element objects - describing the structures for this client - :type config: list + describing the structures (i.e., bundles) for + this client. This can be modified in place. + :type config: list of lxml.etree._Element :returns: None :raises: :class:`Bcfg2.Server.Plugin.exceptions.ValidationError` """ |