A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /usr/lib/pymodules/python2.5/mercurial/hgweb/wsgicgi.py in launch(application=<function run_wsgi at 0xb780ec34>) |
66 return write
|
67
|
68 content = application(environ, start_response)
|
69 for chunk in content:
|
70 write(chunk)
|
| content undefined, application = <function run_wsgi at 0xb780ec34>, environ = {'DOCUMENT_ROOT': '/home/mercurial/mainsite', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mercurial.intuxication.org', ...}, start_response = <function start_response at 0xb780e6f4> |
| /usr/lib/pymodules/python2.5/mercurial/hgweb/request.py in run_wsgi(env={'DOCUMENT_ROOT': '/home/mercurial/mainsite', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mercurial.intuxication.org', ...}, respond=<function start_response at 0xb780e6f4>) |
130 can and should now be used as a WSGI application.'''
|
131 application = app_maker()
|
132 def run_wsgi(env, respond):
|
133 return application(env, respond)
|
134 return run_wsgi
|
| application = <mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>, env = {'DOCUMENT_ROOT': '/home/mercurial/mainsite', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mercurial.intuxication.org', ...}, respond = <function start_response at 0xb780e6f4> |
| /usr/lib/pymodules/python2.5/mercurial/hgweb/hgwebdir_mod.py in __call__(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>, env={'DOCUMENT_ROOT': '/home/mercurial/mainsite', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'mercurial.intuxication.org', ...}, respond=<function start_response at 0xb780e6f4>) |
102 def __call__(self, env, respond):
|
103 req = wsgirequest(env, respond)
|
104 return self.run_wsgi(req)
|
105
|
106 def read_allowed(self, ui, req):
|
| self = <mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>, self.run_wsgi = <bound method hgwebdir.run_wsgi of <mercurial.hgweb.hgwebdir_mod.hgwebdir object at 0xb780f80c>>, req = <mercurial.hgweb.request.wsgirequest object at 0xb780f96c> |
| /usr/lib/pymodules/python2.5/mercurial/hgweb/hgweb_mod.py in templater(self=<mercurial.hgweb.hgweb_mod.hgweb object at 0x831276c>, req=<mercurial.hgweb.request.wsgirequest object at 0xb780f96c>) |
241 start = req.url[-1] == '?' and '&' or '?'
|
242 sessionvars = webutil.sessionvars(vars, start)
|
243 mapfile = templater.stylemap(style, self.templatepath)
|
244
|
245 if not self.reponame:
|
| mapfile undefined, global templater = <module 'mercurial.templater' from '/usr/lib/pymodules/python2.5/mercurial/templater.pyc'>, templater.stylemap = <function stylemap at 0xb78dfe64>, style = 'hgweb', self = <mercurial.hgweb.hgweb_mod.hgweb object at 0x831276c>, self.templatepath = None |