Skip to content

Commit 4c0b288

Browse files
committed
Correctly locate templates in a virtualenv (issue2550841)
The listTemplates() method looks in a number of locations under '<venv>/local/' but the setup script installs them under the directory '<venv>/share/roundup/templates/', so we need to add that to the list of paths that are looked in for templates.
1 parent 04b10dd commit 4c0b288

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ Fixed:
9999
- Fix issue2550843 Pass text of Unauthorised and Login exceptions instead
100100
of the exception instance to avoid traceback with string operations.
101101
(Thomas Arendsen Hein)
102+
- Fix issue2550841 roundup-demo templates not found in virtualenv (John
103+
Kristensen)
102104

103105
Minor:
104106
- demo.py usage message improved: explains "nuke" now. (Bernhard Reiter)

roundup/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def listTemplates(self):
305305
#
306306
# we're interested in where the directory containing "share" is
307307
templates = {}
308-
for N in 2, 4, 5:
308+
for N in 2, 4, 5, 6:
309309
path = __file__
310310
# move up N elements in the path
311311
for i in range(N):

0 commit comments

Comments
 (0)