diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2010-06-08 08:16:41 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-06-09 08:09:54 -0500 |
commit | a2755d2d1a111ad4e55f88a166a5b02856d363cd (patch) | |
tree | 82dabe1dbbe429e9d5cbe554ffb16702a79041d2 /src/lib/Server/Plugins/TGenshi.py | |
parent | e31f5234256e5234348fc67cf45e6f3462e1fbb8 (diff) | |
download | bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.tar.gz bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.tar.bz2 bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.zip |
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/TGenshi.py')
-rw-r--r-- | src/lib/Server/Plugins/TGenshi.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/Server/Plugins/TGenshi.py b/src/lib/Server/Plugins/TGenshi.py index 08100e8e8..b83f00b02 100644 --- a/src/lib/Server/Plugins/TGenshi.py +++ b/src/lib/Server/Plugins/TGenshi.py @@ -1,4 +1,4 @@ -'''This module implements a templating generator based on Genshi''' +"""This module implements a templating generator based on Genshi.""" __revision__ = '$Revision$' from genshi.template import TemplateLoader, \ @@ -25,7 +25,7 @@ def removecomment(stream): class TemplateFile: - '''Template file creates Genshi template structures for the loaded file''' + """Template file creates Genshi template structures for the loaded file.""" def __init__(self, name, specific, encoding): self.name = name @@ -49,7 +49,7 @@ class TemplateFile: self.HandleEvent = self.handle_event def handle_event(self, event=None): - '''Handle all fs events for this template''' + """Handle all fs events for this template.""" if event and event.code2str() == 'deleted': return try: @@ -65,7 +65,7 @@ class TemplateFile: logger.error('Genshi parse error: %s' % perror) def bind_entry(self, entry, metadata): - '''Build literal file information''' + """Build literal file information.""" fname = entry.get('realname', entry.get('name')) if entry.tag == 'Path': entry.set('type', 'file') @@ -104,10 +104,11 @@ class TemplateFile: class TGenshi(Bcfg2.Server.Plugin.GroupSpool): - ''' + """ The TGenshi generator implements a templating - mechanism for configuration files - ''' + mechanism for configuration files. + + """ name = 'TGenshi' __version__ = '$Id$' __author__ = 'jeff@ocjtech.us' |