diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-11 10:32:30 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-11 10:32:30 -0400 |
commit | 71c679e1a0105490bd5845a15de5e8f1a32e2166 (patch) | |
tree | c528e62098b599d7ae74ea53908a045ccf2ffb63 /src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py | |
parent | b682d9e3c11f94a9a9dc254a6d53e44f953a74bf (diff) | |
download | bcfg2-71c679e1a0105490bd5845a15de5e8f1a32e2166.tar.gz bcfg2-71c679e1a0105490bd5845a15de5e8f1a32e2166.tar.bz2 bcfg2-71c679e1a0105490bd5845a15de5e8f1a32e2166.zip |
Cfg: documented all Cfg modules, added development docs
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py index 3673cfcb2..a47663904 100644 --- a/src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py +++ b/src/lib/Bcfg2/Server/Plugins/Cfg/CfgLegacyInfo.py @@ -1,3 +1,5 @@ +""" Handle info and :info files """ + import logging import Bcfg2.Server.Plugin from Bcfg2.Server.Plugins.Cfg import CfgInfo @@ -5,15 +7,24 @@ from Bcfg2.Server.Plugins.Cfg import CfgInfo logger = logging.getLogger(__name__) class CfgLegacyInfo(CfgInfo): + """ CfgLegacyInfo handles :file:`info` and :file:`:info` files for + :ref:`server-plugins-generators-cfg` """ + + #: Handle :file:`info` and :file:`:info` __basenames__ = ['info', ':info'] + + #: CfgLegacyInfo is deprecated. Use + #: :class:`Bcfg2.Server.Plugins.Cfg.CfgInfoXML.CfgInfoXML` instead. deprecated = True def __init__(self, path): CfgInfo.__init__(self, path) self.path = path + __init__.__doc__ = CfgInfo.__init__.__doc__ def bind_info_to_entry(self, entry, metadata): self._set_info(entry, self.metadata) + bind_info_to_entry.__doc__ = CfgInfo.bind_info_to_entry.__doc__ def handle_event(self, event): if event.code2str() == 'deleted': @@ -31,3 +42,4 @@ class CfgLegacyInfo(CfgInfo): if ('perms' in self.metadata and len(self.metadata['perms']) == 3): self.metadata['perms'] = "0%s" % self.metadata['perms'] + handle_event.__doc__ = CfgInfo.handle_event.__doc__ |