diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-01-21 17:01:42 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-01-21 17:01:42 +0000 |
commit | 0ca22dfbc22d89d33f37ff1661f24e6ea6654499 (patch) | |
tree | c186f68c11c83ac2b5cec5d8ef51d33adb7beb11 /src/lib/Server/Plugins/TCheetah.py | |
parent | 90fcec89650af7183027a19347653d9768add2cd (diff) | |
download | bcfg2-0ca22dfbc22d89d33f37ff1661f24e6ea6654499.tar.gz bcfg2-0ca22dfbc22d89d33f37ff1661f24e6ea6654499.tar.bz2 bcfg2-0ca22dfbc22d89d33f37ff1661f24e6ea6654499.zip |
Remove old properties implementation and hardwiring
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5036 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/TCheetah.py')
-rw-r--r-- | src/lib/Server/Plugins/TCheetah.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/Server/Plugins/TCheetah.py b/src/lib/Server/Plugins/TCheetah.py index c2e632351..9806e5787 100644 --- a/src/lib/Server/Plugins/TCheetah.py +++ b/src/lib/Server/Plugins/TCheetah.py @@ -9,13 +9,11 @@ logger = logging.getLogger('Bcfg2.Plugins.TCheetah') class TemplateFile: '''Template file creates Cheetah template structures for the loaded file''' - def __init__(self, name, properties, specific, encoding): + def __init__(self, name, specific, encoding): self.name = name - self.properties = properties self.specific = specific self.encoding = encoding self.template = None - self.searchlist = {'properties': properties} def handle_event(self, event): '''Handle all fs events for this template''' @@ -24,9 +22,7 @@ class TemplateFile: try: s = {'useStackFrames': False} self.template = Cheetah.Template.Template(open(self.name).read(), - compilerSettings=s, - searchList = [self.searchlist]) - self.template.properties = self.properties.properties + compilerSettings=s) except Cheetah.Parser.ParseError, perror: logger.error("Cheetah parse error for file %s" % (self.name)) logger.error(perror.report()) @@ -62,4 +58,4 @@ class TCheetah(Bcfg2.Server.Plugin.GroupSpool): __author__ = 'bcfg-dev@mcs.anl.gov' filename_pattern = 'template' es_child_cls = TemplateFile - use_props = True + |