Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/webutil.py @ 12691:1b1a9038a71a
hgweb: fix hgweb_mod as well as hgwebdir_mod
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sun, 10 Oct 2010 10:42:44 -0500 |
parents | 08a0f04b56bd |
children | 270f57d35525 |
comparison
equal
deleted
inserted
replaced
12690:94e7bd38d9a3 | 12691:1b1a9038a71a |
---|---|
5 # | 5 # |
6 # This software may be used and distributed according to the terms of the | 6 # This software may be used and distributed according to the terms of the |
7 # GNU General Public License version 2 or any later version. | 7 # GNU General Public License version 2 or any later version. |
8 | 8 |
9 import os, copy | 9 import os, copy |
10 from mercurial import match, patch, util, error | 10 from mercurial import match, patch, util, error, ui |
11 from mercurial.node import hex, nullid | 11 from mercurial.node import hex, nullid |
12 | 12 |
13 def up(p): | 13 def up(p): |
14 if p[0] != "/": | 14 if p[0] != "/": |
15 p = "/" + p | 15 p = "/" + p |
217 def __iter__(self): | 217 def __iter__(self): |
218 separator = self.start | 218 separator = self.start |
219 for key, value in self.vars.iteritems(): | 219 for key, value in self.vars.iteritems(): |
220 yield {'name': key, 'value': str(value), 'separator': separator} | 220 yield {'name': key, 'value': str(value), 'separator': separator} |
221 separator = '&' | 221 separator = '&' |
222 | |
223 class wsgiui(ui.ui): | |
224 # default termwidth breaks under mod_wsgi | |
225 def termwidth(self): | |
226 return 80 |