Skip to content

Commit 9106951

Browse files
author
Richard Jones
committed
fixed generic template discovery
1 parent 51ef671 commit 9106951

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def find_template(dir, name, extension):
5656
return (src, generic)
5757

5858
# finally, try _generic.html
59-
generic = filename + '.html'
59+
generic = generic + '.html'
6060
src = os.path.join(dir, generic)
6161
if os.path.exists(src):
6262
return (src, generic)

roundup/init.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: init.py,v 1.26 2003-04-17 03:37:58 richard Exp $
18+
# $Id: init.py,v 1.27 2003-07-28 23:19:21 richard Exp $
1919

2020
__doc__ = """
2121
Init (create) a roundup instance.
@@ -86,7 +86,6 @@ def install(instance_home, template):
8686
# At the moment, it's just a copy
8787
copytree(template, instance_home)
8888

89-
9089
def write_select_db(instance_home, backend):
9190
''' Write the file that selects the backend for the tracker
9291
'''

0 commit comments

Comments
 (0)