summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Core.py2
-rw-r--r--src/lib/Server/Plugins/TCheetah.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py
index c24bc6948..35f3288dc 100644
--- a/src/lib/Server/Core.py
+++ b/src/lib/Server/Core.py
@@ -276,10 +276,12 @@ class Core(object):
if 'altsrc' in entry.attrib:
oldname = entry.get('name')
entry.set('name', entry.get('altsrc'))
+ entry.set('realname', oldname)
del entry.attrib['altsrc']
try:
ret = self.Bind(entry, metadata)
entry.set('name', oldname)
+ del entry.attrib['realname']
return ret
except:
entry.set('name', oldname)
diff --git a/src/lib/Server/Plugins/TCheetah.py b/src/lib/Server/Plugins/TCheetah.py
index 748d4cd14..8ad0bcd42 100644
--- a/src/lib/Server/Plugins/TCheetah.py
+++ b/src/lib/Server/Plugins/TCheetah.py
@@ -47,6 +47,7 @@ class TemplateFile:
'''Build literal file information'''
self.template.metadata = metadata
self.template.path = entry.get('name')
+ self.template.realpath = entry.get('realname', entry.get('name'))
self.template.properties = self.properties.properties
try:
entry.text = str(self.template)