Show More
@@ -64,7 +64,8 b' class hgweb(object):' | |||||
64 | self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) |
|
64 | self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) | |
65 | self.maxfiles = int(self.config("web", "maxfiles", 10)) |
|
65 | self.maxfiles = int(self.config("web", "maxfiles", 10)) | |
66 | self.allowpull = self.configbool("web", "allowpull", True) |
|
66 | self.allowpull = self.configbool("web", "allowpull", True) | |
67 |
|
|
67 | encoding.encoding = self.config("web", "encoding", | |
|
68 | encoding.encoding) | |||
68 |
|
69 | |||
69 | def run(self): |
|
70 | def run(self): | |
70 | if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
|
71 | if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): | |
@@ -160,7 +161,7 b' class hgweb(object):' | |||||
160 |
|
161 | |||
161 | try: |
|
162 | try: | |
162 | tmpl = self.templater(req) |
|
163 | tmpl = self.templater(req) | |
163 |
ctype = tmpl('mimetype', encoding= |
|
164 | ctype = tmpl('mimetype', encoding=encoding.encoding) | |
164 | ctype = templater.stringify(ctype) |
|
165 | ctype = templater.stringify(ctype) | |
165 |
|
166 | |||
166 | # check read permissions non-static content |
|
167 | # check read permissions non-static content | |
@@ -219,7 +220,7 b' class hgweb(object):' | |||||
219 | # some functions for the templater |
|
220 | # some functions for the templater | |
220 |
|
221 | |||
221 | def header(**map): |
|
222 | def header(**map): | |
222 |
yield tmpl('header', encoding= |
|
223 | yield tmpl('header', encoding=encoding.encoding, **map) | |
223 |
|
224 | |||
224 | def footer(**map): |
|
225 | def footer(**map): | |
225 | yield tmpl("footer", **map) |
|
226 | yield tmpl("footer", **map) |
@@ -70,6 +70,8 b' class hgwebdir(object):' | |||||
70 | elif isinstance(self.conf, dict): |
|
70 | elif isinstance(self.conf, dict): | |
71 | paths = self.conf.items() |
|
71 | paths = self.conf.items() | |
72 |
|
72 | |||
|
73 | encoding.encoding = self.ui.config('web', 'encoding', | |||
|
74 | encoding.encoding) | |||
73 | self.motd = self.ui.config('web', 'motd') |
|
75 | self.motd = self.ui.config('web', 'motd') | |
74 | self.style = self.ui.config('web', 'style', 'paper') |
|
76 | self.style = self.ui.config('web', 'style', 'paper') | |
75 | self.stripecount = self.ui.config('web', 'stripes', 1) |
|
77 | self.stripecount = self.ui.config('web', 'stripes', 1) |
General Comments 0
You need to be logged in to leave comments.
Login now