Skip to content

Commit 5102f2a

Browse files
author
Alexander Smishlajev
committed
use templates collection kept in the tracker instance...
...instead of creating new collection for each request
1 parent 0d25980 commit 5102f2a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

roundup/cgi/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.193 2004-10-26 07:58:08 richard Exp $
1+
# $Id: client.py,v 1.194 2004-11-02 10:04:00 a1s Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -600,8 +600,7 @@ def renderContext(self):
600600
'''
601601
name = self.classname
602602
extension = self.template
603-
pt = templating.Templates(self.instance.config.TEMPLATES).get(name,
604-
extension)
603+
pt = self.instance.templates.get(name, extension)
605604

606605
# catch errors so we can handle PT rendering errors more nicely
607606
args = {

0 commit comments

Comments
 (0)