##// END OF EJS Templates
hgweb: remove hgweb.configbool...
Gregory Szorc -
r26161:16d54bbd default
parent child Browse files
Show More
@@ -171,10 +171,6 class hgweb(object):
171 171 return self.repo.ui.config(section, name, default,
172 172 untrusted=untrusted)
173 173
174 def configbool(self, section, name, default=False, untrusted=True):
175 return self.repo.ui.configbool(section, name, default,
176 untrusted=untrusted)
177
178 174 def _getview(self, repo):
179 175 """The 'web.view' config controls changeset filter to hgweb. Possible
180 176 values are ``served``, ``visible`` and ``all``. Default is ``served``.
@@ -342,7 +338,7 class hgweb(object):
342 338 req.form['cmd'] = [tmpl.cache['default']]
343 339 cmd = req.form['cmd'][0]
344 340
345 if self.configbool('web', 'cache', True):
341 if rctx.configbool('web', 'cache', True):
346 342 caching(self, req) # sets ETag header or raises NOT_MODIFIED
347 343 if cmd not in webcommands.__all__:
348 344 msg = 'no such method: %s' % cmd
General Comments 0
You need to be logged in to leave comments. Login now