diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-05-16 18:01:19 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-05-16 18:01:19 +0000 |
commit | 1ba454ff4af3d2f7e813993d905d60666c296634 (patch) | |
tree | 4b6f6ce288fbaedeb281c142d728df89436a9131 /src/lib/Server/Plugins/TCheetah.py | |
parent | 78865e28ba7f5c1f62a54694cccec7a9fb7745df (diff) | |
download | bcfg2-1ba454ff4af3d2f7e813993d905d60666c296634.tar.gz bcfg2-1ba454ff4af3d2f7e813993d905d60666c296634.tar.bz2 bcfg2-1ba454ff4af3d2f7e813993d905d60666c296634.zip |
Fix TCheetah when psyco is used (Completely resolve Ticket #559)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4611 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/TCheetah.py')
-rw-r--r-- | src/lib/Server/Plugins/TCheetah.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/TCheetah.py b/src/lib/Server/Plugins/TCheetah.py index c8c72e494..ec82f5753 100644 --- a/src/lib/Server/Plugins/TCheetah.py +++ b/src/lib/Server/Plugins/TCheetah.py @@ -20,7 +20,9 @@ class TemplateFile: if event.code2str() == 'deleted': return try: - self.template = Cheetah.Template.Template(open(self.name).read()) + s = {'useStackFrames': False} + self.template = Cheetah.Template.Template(open(self.name).read(), + compilerSettings=s) self.template.properties = self.properties.properties except Cheetah.Parser.ParseError, perror: logger.error("Cheetah parse error for file %s" % (self.name)) |