Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 8360:acc202b71619
templater: provide the standard template filters by default
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 12 May 2009 12:04:05 +0200 |
parents | 46293a0c7e9f |
children | beae42f3d93b |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Tue May 12 10:57:55 2009 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Tue May 12 12:04:05 2009 +0200 @@ -7,8 +7,7 @@ # GNU General Public License version 2, incorporated herein by reference. import os -from mercurial import ui, hg, util, hook, error, encoding -from mercurial import templater, templatefilters +from mercurial import ui, hg, util, hook, error, encoding, templater from common import get_mtime, ErrorResponse from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR from common import HTTP_UNAUTHORIZED, HTTP_METHOD_NOT_ALLOWED @@ -246,7 +245,7 @@ # create the templater - tmpl = templater.templater(mapfile, templatefilters.filters, + tmpl = templater.templater(mapfile, defaults={"url": req.url, "staticurl": staticurl, "urlbase": urlbase,