summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/SGenshi.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/SGenshi.py b/src/lib/Server/Plugins/SGenshi.py
index 469cd493e..0b884baae 100644
--- a/src/lib/Server/Plugins/SGenshi.py
+++ b/src/lib/Server/Plugins/SGenshi.py
@@ -17,11 +17,18 @@ class SGenshiTemplateFile(Bcfg2.Server.Plugins.TGenshi.TemplateFile):
class SGenshiEntrySet(Bcfg2.Server.Plugin.EntrySet):
def __init__(self, path, fam):
fpattern = '[A-Za-z]+\.xml'
+ try:
+ properties = Bcfg2.Server.Plugin.TemplateProperties( \
+ '%s/../etc/properties.xml' % (path), fam)
+ except:
+ properties = Bcfg2.Server.Plugin.FakeProperties()
+
Bcfg2.Server.Plugin.EntrySet.__init__(self, fpattern, path,
- True, SGenshiTemplateFile)
+ properties, SGenshiTemplateFile)
fam.AddMonitor(path, self)
def HandleEvent(self, event):
+ '''passthrough event handler for old calling convention'''
if event.filename != self.path:
return self.handle_event(event)