--> --> -->
 
 
KeyError
Python 2.4.4: /usr/bin/python
Sat Nov 22 13:49:30 2008

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /data/repos/hgwebdir.cgi
   36 
   37 def make_web_app():
   38     return hgwebdir("hgweb.config")
   39 
   40 wsgicgi.launch(wsgiapplication(make_web_app))
wsgicgi = <module 'mercurial.hgweb.wsgicgi' from '/data/mercurial/mercurial/hgweb/wsgicgi.py'>, wsgicgi.launch = <function launch>, wsgiapplication = <class 'mercurial.hgweb.request.wsgiapplication'>, make_web_app = <function make_web_app>
 /data/mercurial/mercurial/hgweb/wsgicgi.py in launch(application=<mercurial.hgweb.request.wsgiapplication object>)
   59         return write
   60 
   61     result = application(environ, start_response)
   62     try:
   63         for data in result:
result undefined, application = <mercurial.hgweb.request.wsgiapplication object>, environ = {'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'hg.grml.org', ...}, start_response = <function start_response>
 /data/mercurial/mercurial/hgweb/request.py in __call__(self=<mercurial.hgweb.request.wsgiapplication object>, wsgienv={'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'hg.grml.org', ...}, start_response=<function start_response>)
   16 
   17     def __call__(self, wsgienv, start_response):
   18         return _wsgirequest(self.destmaker(), wsgienv, start_response)
   19 
   20 class _wsgioutputfile(object):
global _wsgirequest = <class 'mercurial.hgweb.request._wsgirequest'>, self = <mercurial.hgweb.request.wsgiapplication object>, self.destmaker = <function make_web_app>, wsgienv = {'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'hg.grml.org', ...}, start_response = <function start_response>
 /data/mercurial/mercurial/hgweb/request.py in __init__(self=<mercurial.hgweb.request._wsgirequest object>, destination=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, wsgienv={'DOCUMENT_ROOT': '/htdocs', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HGENCODING': 'UTF-8', 'HTTP_ACCEPT': 'Accept: application/xhtml+xml,text/html;q=0.9,text/plain;', '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': 'hg.grml.org', ...}, start_response=<function start_response>)
   49         self.start_response = start_response
   50         self.headers = []
   51         destination.run_wsgi(self)
   52 
   53     def __iter__(self):
destination = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>, destination.run_wsgi = <bound method hgwebdir.run_wsgi of <mercurial.hgweb.hgwebdir_mod.hgwebdir object>>, self = <mercurial.hgweb.request._wsgirequest object>
 /data/mercurial/mercurial/hgweb/hgwebdir_mod.py in run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request._wsgirequest object>)
  186                     req.write(tmpl("error", error=str(inst)))
  187             else:
  188                 req.write(tmpl("notfound", repo=virtual))
  189         else:
  190             if req.form.has_key('static'):
req = <mercurial.hgweb.request._wsgirequest object>, req.write = <bound method _wsgirequest.write of <mercurial.hgweb.request._wsgirequest object>>, tmpl = <mercurial.templater.templater object>, repo undefined, virtual = 'grml-wiki'
 /data/mercurial/mercurial/hgweb/request.py in write(self=<mercurial.hgweb.request._wsgirequest object>, *things=(<generator object>,))
   60         for thing in things:
   61             if hasattr(thing, "__iter__"):
   62                 for part in thing:
   63                     self.write(part)
   64             else:
part undefined, thing = <generator object>
 /data/mercurial/mercurial/templater.py in __call__(self=<mercurial.templater.templater object>, t='notfound', **map={'repo': 'grml-wiki'})
   86         if not self.cache.has_key(t):
   87             try:
   88                 self.cache[t] = file(self.map[t]).read()
   89             except IOError, inst:
   90                 raise IOError(inst.args[0], _('template file %s: %s') %
self = <mercurial.templater.templater object>, self.cache = {'annotateline': '<tr style="font-family:monospace" class="parity#...v#</a></td><td><pre>#line|escape#</pre></td></tr>', 'archiveentry': ' | <a href="{url}archive/{node|short}{extension}">#type|escape#</a> ', 'changelogchild': '<tr><th class="child">child #rev#:</th><td class...ionvars%urlparameter}">#node|short#</a></td></tr>', 'changelogparent': '<tr><th class="parent">parent #rev#:</th><td cla...ionvars%urlparameter}">#node|short#</a></td></tr>', 'changelogtag': '<tr><th class="tag">tag:</th><td class="tag">#tag|escape#</td></tr>', 'changesetchild': '<tr><td>child {rev}</td><td style="font-family:m...ionvars%urlparameter}">{node|short}</a></td></tr>', 'changesetparent': '<tr><td>parent {rev}</td><td style="font-family:...ionvars%urlparameter}">{node|short}</a></td></tr>', 'changesettag': '<tr><td>tag</td><td>#tag|escape#</td></tr>', 'default': 'summary', 'diffblock': '<pre>#lines#</pre>', ...}, t = 'notfound', builtin file = <type 'file'>, self.map = {'changelog': '/data/mercurial/templates/gitweb/changelog.tmpl', 'changelogentry': '/data/mercurial/templates/gitweb/changelogentry.tmpl', 'changeset': '/data/mercurial/templates/gitweb/changeset.tmpl', 'error': '/data/mercurial/templates/gitweb/error.tmpl', 'fileannotate': '/data/mercurial/templates/gitweb/fileannotate.tmpl', 'filediff': '/data/mercurial/templates/gitweb/filediff.tmpl', 'filelog': '/data/mercurial/templates/gitweb/filelog.tmpl', 'filerevision': '/data/mercurial/templates/gitweb/filerevision.tmpl', 'footer': '/data/mercurial/templates/gitweb/footer.tmpl', 'header': '/data/mercurial/templates/gitweb/header.tmpl', ...}, ).read undefined

KeyError: 'notfound'
      args = ('notfound',)