diff roundup/cgi/templating.py @ 4057:885069b5f328

Fix context for query form to be a class.
author Stefan Seefeld <stefan@seefeld.name>
date Fri, 20 Feb 2009 04:02:38 +0000
parents a82b17500b22
children 3057092623e1
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Feb 19 23:32:23 2009 +0000
+++ b/roundup/cgi/templating.py	Fri Feb 20 04:02:38 2009 +0000
@@ -1102,7 +1102,10 @@
 
         # new template, using the specified classname and request
         pt = self._client.instance.templates.get(req.classname, 'search')
-
+        # The context for a search page should be the class, not any
+        # node.
+        self._client.nodeid = None
+        
         # use our fabricated request
         return pt.render(self._client, req.classname, req)
 

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