diff roundup/cgi/templating.py @ 3280:f3d15524562e

fix faulty find_template filename facility [SF#1163629]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 13 Apr 2005 06:14:12 +0000
parents 572bbe7fa236
children 8c7b522dc934
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Wed Apr 13 06:12:12 2005 +0000
+++ b/roundup/cgi/templating.py	Wed Apr 13 06:14:12 2005 +0000
@@ -85,10 +85,10 @@
 
     # try with a .html or .xml extension (new-style)
     for extension in '.html', '.xml':
-        filename = filename + extension
-        src = os.path.join(dir, filename)
+        f = filename + extension
+        src = os.path.join(dir, f)
         if os.path.exists(src):
-            return (src, filename)
+            return (src, f)
 
     # no view == no generic template is possible
     if not view:

Roundup Issue Tracker: http://roundup-tracker.org/