changeset 7991:db8531aabfdc

routing: drop default f_path for changelog_file_home There is no point in creating a changelog_file_home URL without specifying f_path. The default value of None is thus never any good. And especially, it is unclear what a value of None really means.
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 01 Dec 2019 21:02:43 +0100
parents 04dded89aa87
children 5a092b5f0d98
files kallithea/config/routing.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/config/routing.py	Sun Dec 01 20:24:28 2019 +0100
+++ b/kallithea/config/routing.py	Sun Dec 01 21:02:43 2019 +0100
@@ -673,7 +673,7 @@
                 controller='changelog', conditions=dict(function=check_repo))
 
     rmap.connect('changelog_file_home', '/{repo_name:.*?}/changelog/{revision}/{f_path:.*}',
-                controller='changelog', f_path=None,
+                controller='changelog',
                 conditions=dict(function=check_repo))
 
     rmap.connect('changelog_details', '/{repo_name:.*?}/changelog_details/{cs}',