~ressu/bcfg2/debian

« back to all changes in this revision

Viewing changes to src/lib/Server/Plugins/TCheetah.py

  • Committer: Sami Haahtinen
  • Date: 2007-06-30 22:49:55 UTC
  • mfrom: (616.2.476)
  • Revision ID: ressu@ressukka.net-20070630224955-3nsy7ekzxha7h39x
import new upstream release 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
'''This module implements a templating generator based on Cheetah'''
2
 
__revision__ = '$Revision: 2694 $'
 
2
__revision__ = '$Revision: 3302 $'
3
3
 
4
4
import logging, lxml.etree, posixpath, re, Cheetah.Parser, Cheetah.Template
5
5
import Bcfg2.Server.Plugin
46
46
    def BuildFile(self, entry, metadata):
47
47
        '''Build literal file information'''
48
48
        self.template.metadata = metadata
 
49
        self.template.path = entry.get('name')
49
50
        self.template.properties = self.properties.properties
50
51
        try:
51
52
            entry.text = str(self.template)
72
73
class TCheetah(Bcfg2.Server.Plugin.Plugin):
73
74
    '''The TCheetah generator implements a templating mechanism for configuration files'''
74
75
    __name__ = 'TCheetah'
75
 
    __version__ = '$Id: TCheetah.py 2694 2007-01-18 16:30:43Z desai $'
 
76
    __version__ = '$Id: TCheetah.py 3302 2007-06-14 15:21:50Z desai $'
76
77
    __author__ = 'bcfg-dev@mcs.anl.gov'
77
78
 
78
79
    def __init__(self, core, datastore):