diff options
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r-- | src/lib/Server/Plugins/TGenshi.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/TGenshi.py b/src/lib/Server/Plugins/TGenshi.py index da6dcf956..419c73f32 100644 --- a/src/lib/Server/Plugins/TGenshi.py +++ b/src/lib/Server/Plugins/TGenshi.py @@ -50,8 +50,11 @@ class TemplateFile: def BuildFile(self, entry, metadata): '''Build literal file information''' + fname = entry.get('realname', entry.get('name')) try: - stream = self.template.generate(name=entry.get('name'), metadata=metadata, properties=self.properties) + stream = self.template.generate(name=fname, + metadata=metadata, + properties=self.properties) if isinstance(self.template, TextTemplate): entry.text = stream.render('text') else: |