diff roundup/cgi/client.py @ 2853:6d34622fd5f8

use templates collection kept in the tracker instance... ...instead of creating new collection for each request
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Tue, 02 Nov 2004 10:04:00 +0000
parents 9ab32261216b
children 930e780c751f
line wrap: on
line diff
--- a/roundup/cgi/client.py	Tue Nov 02 10:02:05 2004 +0000
+++ b/roundup/cgi/client.py	Tue Nov 02 10:04:00 2004 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.193 2004-10-26 07:58:08 richard Exp $
+# $Id: client.py,v 1.194 2004-11-02 10:04:00 a1s Exp $
 
 """WWW request handler (also used in the stand-alone server).
 """
@@ -600,8 +600,7 @@
         '''
         name = self.classname
         extension = self.template
-        pt = templating.Templates(self.instance.config.TEMPLATES).get(name,
-            extension)
+        pt = self.instance.templates.get(name, extension)
 
         # catch errors so we can handle PT rendering errors more nicely
         args = {

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