Code

include queryname in query template render ;)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 16 Oct 2002 06:44:29 +0000 (06:44 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 16 Oct 2002 06:44:29 +0000 (06:44 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1357 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index e7802dc78d496580d04df746444e3157164c6b0a..b1754100c5300daeca81712431d1d04e417003fd 100644 (file)
@@ -662,7 +662,9 @@ class HTMLItem(HTMLPermissions):
         # create a new request and override the specified args
         req = HTMLRequest(self._client)
         req.classname = self._klass.get(self._nodeid, 'klass')
-        req.updateFromURL(self._klass.get(self._nodeid, 'url'))
+        name = self._klass.get(self._nodeid, 'name')
+        req.updateFromURL(self._klass.get(self._nodeid, 'url') +
+            '&:queryname=%s'%urllib.quote(name))
 
         # new template, using the specified classname and request
         pt = Templates(self._db.config.TEMPLATES).get(req.classname, 'search')