diff roundup/cgi/actions.py @ 5173:4f99aad7e8e8

Store template name with saved query When storing user-defined queries we now store the template with the query if the template name is different from 'index'. This allows stored queries for templates different from the default 'index' template.
author Ralf Schlatterbeck <rsc@runtux.com>
date Fri, 09 Dec 2016 09:49:25 +0100
parents a86860224d80
children 302e3a1a7190
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Mon Nov 28 16:09:39 2016 +0100
+++ b/roundup/cgi/actions.py	Fri Dec 09 09:49:25 2016 +0100
@@ -400,11 +400,12 @@
         because the leading '?' is not part of the query string.
 
         Implementation note:
-        But maybe the template should be part of the stored query:
+        We now store the template with the query if the template name is
+        different from 'index'
+        """
         template = self.getFromForm('template')
-        if template:
+        if template and template != 'index':
             return req.indexargs_url('', {'@template' : template})[1:]
-        """
         return req.indexargs_url('', {})[1:]
 
     def getFromForm(self, name):

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