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.6/mercurial/hgweb/wsgicgi.py in launch(application=<function run_wsgi>) |
69 return write
|
70
|
71 content = application(environ, start_response)
|
72 try:
|
73 for chunk in content:
|
| content undefined, application = <function run_wsgi>, environ = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;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': 'fuzzle.org', ...}, start_response = <function start_response> |
| /usr/lib/pymodules/python2.6/mercurial/hgweb/request.py in run_wsgi(env={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;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': 'fuzzle.org', ...}, respond=<function start_response>) |
136 can and should now be used as a WSGI application.'''
|
137 application = app_maker()
|
138 def run_wsgi(env, respond):
|
139 return application(env, respond)
|
140 return run_wsgi
|
| application = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>, env = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;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': 'fuzzle.org', ...}, respond = <function start_response> |
| /usr/lib/pymodules/python2.6/mercurial/hgweb/hgwebdir_mod.py in __call__(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, env={'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;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': 'fuzzle.org', ...}, respond=<function start_response>) |
103 def __call__(self, env, respond):
|
104 req = wsgirequest(env, respond)
|
105 return self.run_wsgi(req)
|
106
|
107 def read_allowed(self, ui, req):
|
| self = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>, self.run_wsgi = <bound method hgwebdir.run_wsgi of <mercurial.hgweb.hgwebdir_mod.hgwebdir object>>, req = <mercurial.hgweb.request.wsgirequest object> |
| /usr/lib/pymodules/python2.6/mercurial/hgweb/hgwebdir_mod.py in run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request.wsgirequest object>) |
133
|
134 virtual = req.env.get("PATH_INFO", "").strip('/')
|
135 tmpl = self.templater(req)
|
136 ctype = tmpl('mimetype', encoding=encoding.encoding)
|
137 ctype = templater.stringify(ctype)
|
| tmpl = None, self = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>, self.templater = <bound method hgwebdir.templater of <mercurial.hgweb.hgwebdir_mod.hgwebdir object>>, req = <mercurial.hgweb.request.wsgirequest object> |
| /usr/lib/pymodules/python2.6/mercurial/hgweb/hgwebdir_mod.py in templater(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request.wsgirequest object>) |
321 'paper'
|
322 )
|
323 style, mapfile = templater.stylemap(styles, self.templatepath)
|
324 if style == styles[0]:
|
325 vars['style'] = style
|
| style undefined, mapfile undefined, global templater = <module 'mercurial.templater' from '/usr/lib/pymodules/python2.6/mercurial/templater.pyc'>, templater.stylemap = <function stylemap>, styles = (None, None, 'paper'), self = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>, self.templatepath = '/home/petern/public_html/templates/' |