Show More
@@ -551,6 +551,9 b' web::' | |||||
551 | Which template map style to use. |
|
551 | Which template map style to use. | |
552 | templates;; |
|
552 | templates;; | |
553 | Where to find the HTML templates. Default is install path. |
|
553 | Where to find the HTML templates. Default is install path. | |
|
554 | encoding;; | |||
|
555 | Character encoding name. | |||
|
556 | Example: "UTF-8" | |||
554 |
|
557 | |||
555 |
|
558 | |||
556 | AUTHOR |
|
559 | AUTHOR |
@@ -103,6 +103,7 b' class hgweb(object):' | |||||
103 | self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) |
|
103 | self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) | |
104 | self.maxfiles = int(self.config("web", "maxfiles", 10)) |
|
104 | self.maxfiles = int(self.config("web", "maxfiles", 10)) | |
105 | self.allowpull = self.configbool("web", "allowpull", True) |
|
105 | self.allowpull = self.configbool("web", "allowpull", True) | |
|
106 | self.encoding = self.config("web", "encoding", util._encoding) | |||
106 |
|
107 | |||
107 | def archivelist(self, nodeid): |
|
108 | def archivelist(self, nodeid): | |
108 | allowed = self.configlist("web", "allow_archive") |
|
109 | allowed = self.configlist("web", "allow_archive") | |
@@ -655,7 +656,7 b' class hgweb(object):' | |||||
655 | def run_wsgi(self, req): |
|
656 | def run_wsgi(self, req): | |
656 | def header(**map): |
|
657 | def header(**map): | |
657 | header_file = cStringIO.StringIO( |
|
658 | header_file = cStringIO.StringIO( | |
658 |
''.join(self.t("header", encoding= |
|
659 | ''.join(self.t("header", encoding=self.encoding, **map))) | |
659 | msg = mimetools.Message(header_file, 0) |
|
660 | msg = mimetools.Message(header_file, 0) | |
660 | req.header(msg.items()) |
|
661 | req.header(msg.items()) | |
661 | yield header_file.read() |
|
662 | yield header_file.read() |
General Comments 0
You need to be logged in to leave comments.
Login now