From cbeaa77a15113fd10eef290168e7d963217fddda Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 28 Jan 2008 16:35:02 +0100 Subject: [PATCH] hgweb: forgot to centralize the req.write() calls in hgwebdir --- mercurial/hgweb/hgwebdir_mod.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py index c350021d4c..4a7ed17eea 100644 --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -90,7 +90,7 @@ class hgwebdir(object): # top-level index elif not virtual: tmpl = self.templater(req) - self.makeindex(req, tmpl) + req.write(self.makeindex(req, tmpl)) return # nested indexes and hgwebs @@ -112,7 +112,7 @@ class hgwebdir(object): subdir = virtual + '/' if [r for r in repos if r.startswith(subdir)]: tmpl = self.templater(req) - self.makeindex(req, tmpl, subdir) + req.write(self.makeindex(req, tmpl, subdir)) return up = virtual.rfind('/') @@ -227,9 +227,9 @@ class hgwebdir(object): and "-" or "", column)) for column in sortable] - req.write(tmpl("index", entries=entries, subdir=subdir, - sortcolumn=sortcolumn, descending=descending, - **dict(sort))) + return tmpl("index", entries=entries, subdir=subdir, + sortcolumn=sortcolumn, descending=descending, + **dict(sort)) def templater(self, req):