Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/webcommands.py @ 7966:aa983c3d94a9
templater: move stylemap function from hgweb to templater
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sat, 04 Apr 2009 17:46:11 +0200 |
parents | 53c72ba36c2b |
children | a1a5a57efe90 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sat Apr 04 10:51:52 2009 +0200 +++ b/mercurial/hgweb/webcommands.py Sat Apr 04 17:46:11 2009 +0200 @@ -7,7 +7,7 @@ import os, mimetypes, re, cgi, copy import webutil -from mercurial import error, archival, templatefilters +from mercurial import error, archival, templater, templatefilters from mercurial.node import short, hex from mercurial.util import binary from common import paritygen, staticfile, get_contact, ErrorResponse @@ -610,7 +610,7 @@ # readable by the user running the CGI script static = web.config("web", "static", None, untrusted=False) if not static: - tp = web.templatepath + tp = web.templatepath or templater.templatepath() if isinstance(tp, str): tp = [tp] static = [os.path.join(p, 'static') for p in tp]