| <type 'exceptions.KeyError'> | Python 2.5: /usr/local/bin/python Thu Mar 11 07:39:07 2010 |
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/local/www/data-dist/hgweb/repos/fuse4bsd-hg/index.cgi in |
| 13 |
| 14 from mercurial import hgweb |
| 15 |
| 16 h = hgweb.hgweb("/usr/home/users/csaba/scratch/vcpx/fuse4bsd-hg/fuse4bsd-hg", "fuse4bsd") |
| 17 h.run() |
| h = <mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>, h.run = <bound method hgweb.run of <mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>> |
| /usr/local/meta/progs/mercurial-hg-dev/usr/local/lib/python2.5/site-packages/mercurial/hgweb/hgweb_mod.py in run(self=<mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>) |
| 74 raise RuntimeError("This function is only intended to be called while running as a CGI script.") |
| 75 import mercurial.hgweb.wsgicgi as wsgicgi |
| 76 wsgicgi.launch(self) |
| 77 |
| 78 def __call__(self, env, respond): |
| wsgicgi = <module 'mercurial.hgweb.wsgicgi' from '/meta/pr...on2.4/site-packages/mercurial/hgweb/wsgicgi.pyc'>, wsgicgi.launch = <function launch at 0x85c33e4>, self = <mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc> |
| /usr/local/meta/progs/mercurial-hg-dev/usr/local/lib/python2.5/site-packages/mercurial/hgweb/wsgicgi.py in launch(application=<mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>) |
| 63 return write |
| 64 |
| 65 content = application(environ, start_response) |
| 66 for chunk in content: |
| 67 write(chunk) |
| content undefined, application = <mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>, environ = {'DOCUMENT_ROOT': '/usr/local/www/data-dist/hgweb', 'GATEWAY_INTERFACE': 'CGI/1.1', '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.creo.hu', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response at 0x86e19cc> |
| /usr/local/meta/progs/mercurial-hg-dev/usr/local/lib/python2.5/site-packages/mercurial/hgweb/hgweb_mod.py in __call__(self=<mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>, env={'DOCUMENT_ROOT': '/usr/local/www/data-dist/hgweb', 'GATEWAY_INTERFACE': 'CGI/1.1', '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.creo.hu', 'HTTP_PRAGMA': 'no-cache', ...}, respond=<function start_response at 0x86e19cc>) |
| 78 def __call__(self, env, respond): |
| 79 req = wsgirequest(env, respond) |
| 80 return self.run_wsgi(req) |
| 81 |
| 82 def run_wsgi(self, req): |
| self = <mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>, self.run_wsgi = <bound method hgweb.run_wsgi of <mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>>, req = <mercurial.hgweb.request.wsgirequest object at 0x85c5a0c> |
| /usr/local/meta/progs/mercurial-hg-dev/usr/local/lib/python2.5/site-packages/mercurial/hgweb/hgweb_mod.py in run_wsgi(self=<mercurial.hgweb.hgweb_mod.hgweb object at 0x85c51cc>, req=<mercurial.hgweb.request.wsgirequest object at 0x85c5a0c>) |
| 152 |
| 153 if cmd == 'archive': |
| 154 fn = req.form['node'][0] |
| 155 for type_, spec in self.archive_specs.iteritems(): |
| 156 ext = spec[2] |
| fn undefined, req = <mercurial.hgweb.request.wsgirequest object at 0x85c5a0c>, req.form = {'cmd': ['archive']} |
<type 'exceptions.KeyError'>: 'node'