| IndexError | Python 2.4.3: /opt/local/bin/python2.4 Fri Oct 10 22:02:29 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.
| /san/hosted/grsymphony/vendor/flup/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object at 0x21d5770>) |
| 556 """Runs the handler, flushes the streams, and ends the request.""" |
| 557 try: |
| 558 protocolStatus, appStatus = self.server.handler(self) |
| 559 except: |
| 560 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object at 0x21d5770>, self.server = <flup.server.fcgi.WSGIServer object at 0x5a2b0>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object at 0x5a2b0>> |
| /san/hosted/grsymphony/vendor/flup/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object at 0x5a2b0>, req=<flup.server.fcgi_base.Request object at 0x21d5770>) |
| 1109 try: |
| 1110 try: |
| 1111 result = self.application(environ, start_response) |
| 1112 try: |
| 1113 for data in result: |
| result = None, self = <flup.server.fcgi.WSGIServer object at 0x5a2b0>, self.application = <django.core.handlers.wsgi.WSGIHandler object at 0x5a310>, environ = {'DOCUMENT_ROOT': '/san/hosted/grsymphony/virtualhost_root', 'GATEWAY_INTERFACE': 'CGI/1.1', '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': 'www.grsymphony.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response at 0x24babb0> |
| /san/hosted/grsymphony/django_src/django/core/handlers/wsgi.py in __call__(self=<django.core.handlers.wsgi.WSGIHandler object at 0x5a310>, environ={'DOCUMENT_ROOT': '/san/hosted/grsymphony/virtualhost_root', 'GATEWAY_INTERFACE': 'CGI/1.1', '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': 'www.grsymphony.org', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response at 0x24babb0>) |
| 183 try: |
| 184 request = WSGIRequest(environ) |
| 185 response = self.get_response(request) |
| 186 |
| 187 # Apply response middleware |
| response undefined, self = <django.core.handlers.wsgi.WSGIHandler object at 0x5a310>, self.get_response = <bound method WSGIHandler.get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x5a310>>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /san/hosted/grsymphony/django_src/django/core/handlers/base.py in get_response(self=<django.core.handlers.wsgi.WSGIHandler object at 0x5a310>, request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 94 else: |
| 95 callback, param_dict = resolver.resolve404() |
| 96 return callback(request, **param_dict) |
| 97 except exceptions.PermissionDenied: |
| 98 return http.HttpResponseForbidden('<h1>Permission denied</h1>') |
| callback = <function page_not_found at 0x1623db0>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, param_dict = {} |
| /san/hosted/grsymphony/django_src/django/views/defaults.py in page_not_found(request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, template_name='404.html') |
| 77 """ |
| 78 t = loader.get_template(template_name) |
| 79 return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path}))) |
| 80 |
| 81 def server_error(request, template_name='500.html'): |
| global http = <module 'django.http' from '/san/hosted/grsympho...ost_root/../django_src/django/http/__init__.pyc'>, http.HttpResponseNotFound = <class 'django.http.HttpResponseNotFound'>, t = <django.template.Template object at 0x21d5670>, t.render = <bound method Template.render of <django.template.Template object at 0x21d5670>>, global RequestContext = <class 'django.template.context.RequestContext'>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, request.path = '/events/concerts/classical-7/' |
| /san/hosted/grsymphony/django_src/django/template/context.py in __init__(self=[{'LANGUAGES': (('ar', 'Arabic'), ('bn', 'Bengal...'request_path': '/events/concerts/classical-7/'}], request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>, dict={'request_path': '/events/concerts/classical-7/'}, processors=()) |
| 93 processors = () |
| 94 else: |
| 95 processors = tuple(processors) |
| 96 for processor in get_standard_processors() + processors: |
| 97 self.update(processor(request)) |
| self = [{'LANGUAGES': (('ar', 'Arabic'), ('bn', 'Bengal...'request_path': '/events/concerts/classical-7/'}], self.update = <bound method RequestContext.update of [{'LANGUA...request_path': '/events/concerts/classical-7/'}]>, processor = <function sidebar_navigation at 0x1615f70>, request = <WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}> |
| /san/hosted/grsymphony/helpers/context_processors.py in sidebar_navigation(request=<WSGIRequest GET:<MultiValueDict: {}>, POST:<Mul...gi.url_scheme': 'http', 'wsgi.version': (1, 0)}>) |
| 24 match = re.compile('^/events/concerts/([^/]*)').search(request.path) |
| 25 if match: |
| 26 concert_series_slug = Concert.objects.filter(slug__exact = match.group(1))[0].concert_series.slug |
| 27 pages = Page.objects.filter(alias = '/events/series/' + concert_series_slug) |
| 28 if pages.count(): |
| concert_series_slug undefined, global Concert = <class 'grsymphony.events.models.Concert'>, Concert.objects = <django.db.models.manager.Manager object at 0x153e5d0>, Concert.objects.filter = <bound method Manager.filter of <django.db.models.manager.Manager object at 0x153e5d0>>, slug__exact undefined, match = <_sre.SRE_Match object at 0x24ba220>, match.group = <built-in method group of _sre.SRE_Match object at 0x24ba220>, ].concert_series undefined |
| /san/hosted/grsymphony/django_src/django/db/models/query.py in __getitem__(self=[], k=0) |
| 142 else: |
| 143 try: |
| 144 return list(self._clone(_offset=k, _limit=1))[0] |
| 145 except self.model.DoesNotExist, e: |
| 146 raise IndexError, e.args |
| builtin list = <type 'list'>, self = [], self._clone = <bound method QuerySet._clone of []>, _offset undefined, k = 0, _limit undefined |
IndexError: list index out of range
args =
('list index out of range',)