Code

much nicer error messages when there's a templating error
[roundup.git] / roundup / cgi / templating.py
index 15f10c721756c8b9eb4218c7bc1a966bf71fc4c7..d29f31d6600aac87eae1d8eae92f55a511c90a2b 100644 (file)
@@ -98,7 +98,7 @@ def getTemplate(dir, name, extension, classname=None, request=None):
     # compile the template
     templates[key] = pt = RoundupPageTemplate()
     pt.write(open(src).read())
-    pt.id = name
+    pt.id = filename
     pt.mtime = time.time()
     return pt