##// END OF EJS Templates
hgweb: forgot to centralize the req.write() calls in hgwebdir
Dirkjan Ochtman -
r5965:abe373e1 default
parent child Browse files
Show More
@@ -90,7 +90,7 b' class hgwebdir(object):'
90 90 # top-level index
91 91 elif not virtual:
92 92 tmpl = self.templater(req)
93 self.makeindex(req, tmpl)
93 req.write(self.makeindex(req, tmpl))
94 94 return
95 95
96 96 # nested indexes and hgwebs
@@ -112,7 +112,7 b' class hgwebdir(object):'
112 112 subdir = virtual + '/'
113 113 if [r for r in repos if r.startswith(subdir)]:
114 114 tmpl = self.templater(req)
115 self.makeindex(req, tmpl, subdir)
115 req.write(self.makeindex(req, tmpl, subdir))
116 116 return
117 117
118 118 up = virtual.rfind('/')
@@ -227,9 +227,9 b' class hgwebdir(object):'
227 227 and "-" or "", column))
228 228 for column in sortable]
229 229
230 req.write(tmpl("index", entries=entries, subdir=subdir,
231 sortcolumn=sortcolumn, descending=descending,
232 **dict(sort)))
230 return tmpl("index", entries=entries, subdir=subdir,
231 sortcolumn=sortcolumn, descending=descending,
232 **dict(sort))
233 233
234 234 def templater(self, req):
235 235
General Comments 0
You need to be logged in to leave comments. Login now