| TypeError | Python 2.4.3: /usr/local/bin/python Fri Jan 9 02:40:34 2009 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/web/pyblosxom.cgi |
| 80 p = PyBlosxom(cfg, env) |
| 81 |
| 82 p.run() |
| 83 response = p.getResponse() |
| 84 response.sendHeaders(sys.stdout) |
| p = <Pyblosxom.pyblosxom.PyBlosxom instance>, p.run = <bound method PyBlosxom.run of <Pyblosxom.pyblosxom.PyBlosxom instance>> |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/Pyblosxom/pyblosxom.py in run(self=<Pyblosxom.pyblosxom.PyBlosxom instance>, static=False) |
| 164 |
| 165 if not handled == 1: |
| 166 blosxom_handler(self._request) |
| 167 |
| 168 # do end callback |
| global blosxom_handler = <function blosxom_handler>, self = <Pyblosxom.pyblosxom.PyBlosxom instance>, self._request = Request |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/Pyblosxom/pyblosxom.py in blosxom_handler(request=Request) |
| 854 'return_code': '404', |
| 855 'request': request}) |
| 856 renderer.render() |
| 857 |
| 858 elif not renderer: |
| renderer = <Pyblosxom.renderers.blosxom.Renderer instance>, renderer.render = <bound method Renderer.render of <Pyblosxom.renderers.blosxom.Renderer instance>> |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/Pyblosxom/renderers/blosxom.py in render(self=<Pyblosxom.renderers.blosxom.Renderer instance>, header=1) |
| 318 self._outputFlavour(parsevars,'head') |
| 319 if self.flavour.has_key('story'): |
| 320 self._processContent() |
| 321 if self.flavour.has_key('date_foot'): |
| 322 self._outputFlavour(parsevars,'date_foot') |
| self = <Pyblosxom.renderers.blosxom.Renderer instance>, self._processContent = <bound method Renderer._processContent of <Pyblosxom.renderers.blosxom.Renderer instance>> |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/Pyblosxom/renderers/blosxom.py in _processContent(self=<Pyblosxom.renderers.blosxom.Renderer instance>) |
| 268 |
| 269 for entry in self._content: |
| 270 output, current_date = self._processEntry(entry, current_date) |
| 271 outputbuffer.append(output) |
| 272 |
| output undefined, current_date = '', self = <Pyblosxom.renderers.blosxom.Renderer instance>, self._processEntry = <bound method Renderer._processEntry of <Pyblosxom.renderers.blosxom.Renderer instance>>, entry = <fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'> |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/Pyblosxom/renderers/blosxom.py in _processEntry(self=<Pyblosxom.renderers.blosxom.Renderer instance>, entry=<fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'>, current_date='Tue, 20 May 2003') |
| 236 |
| 237 template = u"" |
| 238 args = self._run_callback("story_end", { "entry": entry, "template": template }) |
| 239 |
| 240 return "".join(output) + args['template'], current_date |
| args undefined, self = <Pyblosxom.renderers.blosxom.Renderer instance>, self._run_callback = <bound method Renderer._run_callback of <Pyblosxom.renderers.blosxom.Renderer instance>>, entry = <fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'>, template = u'' |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/Pyblosxom/renderers/blosxom.py in _run_callback(self=<Pyblosxom.renderers.blosxom.Renderer instance>, chain='story_end', input={'entry': <fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'>, 'renderer': <Pyblosxom.renderers.blosxom.Renderer instance>, 'request': Request, 'template': u''}) |
| 402 return tools.run_callback(chain, input, |
| 403 mappingfunc=lambda x,y: x, |
| 404 defaultfunc=lambda x:x) |
| 405 |
| 406 def getContent(self): |
| defaultfunc undefined, x undefined |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/Pyblosxom/tools.py in run_callback(chain=[<function cb_story_end>], input={'entry': <fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'>, 'renderer': <Pyblosxom.renderers.blosxom.Renderer instance>, 'request': Request, 'template': u''}, mappingfunc=<function <lambda>>, donefunc=<function <lambda>>, defaultfunc=<function <lambda>>) |
| 549 for func in chain: |
| 550 # we call the function with the input dict it returns an output. |
| 551 output = func(input) |
| 552 |
| 553 # we fun the output through our donefunc to see if we should stop |
| output = None, func = <function cb_story_end>, input = {'entry': <fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'>, 'renderer': <Pyblosxom.renderers.blosxom.Renderer instance>, 'request': Request, 'template': u''} |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/plugins/comments.py in cb_story_end(args={'entry': <fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'>, 'renderer': <Pyblosxom.renderers.blosxom.Renderer instance>, 'request': Request, 'template': u''}) |
| 765 and data['display_comment_default'] == 1: |
| 766 output = [] |
| 767 entry['comments'] = readComments(entry, config) |
| 768 if entry.has_key('comments'): |
| 769 for comment in entry['comments']: |
| entry = <fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'>, global readComments = <function readComments>, config = {'base_url': 'http://www.burtonini.com/blog', 'blog_author': 'Ross Burton', 'blog_description': "A potted account of Ross' life", 'blog_email': 'ross@burtonini.com', 'blog_encoding': 'UTF-8', 'blog_language': 'en', 'blog_rights': 'Copyright (C) 2006 Ross Burton', 'blog_title': 'Ross Burton', 'codebase': '/home/ross/burton_html/cgi/pyblosxom-1.3.2', 'comment_dir': '/home/ross/blosxom/comments', ...} |
| /home/ross/burton_html/cgi/pyblosxom-1.3.2/plugins/comments.py in readComments(entry=<fileentry f'/home/ross/burton_html/blosxom/comp.../blosxom/computers/sound-juicer/sj-20030520.txt'>, config={'base_url': 'http://www.burtonini.com/blog', 'blog_author': 'Ross Burton', 'blog_description': "A potted account of Ross' life", 'blog_email': 'ross@burtonini.com', 'blog_encoding': 'UTF-8', 'blog_language': 'en', 'blog_rights': 'Copyright (C) 2006 Ross Burton', 'blog_title': 'Ross Burton', 'codebase': '/home/ross/burton_html/cgi/pyblosxom-1.3.2', 'comment_dir': '/home/ross/blosxom/comments', ...}) |
| 249 entry['num_comments'] = len(filelist) |
| 250 comments = [readComment(f, encoding) for f in filelist] |
| 251 comments = [(cmt['cmt_time'], cmt) for cmt in comments] |
| 252 comments.sort() |
| 253 return [c[1] for c in comments] |
| comments = [{u'cmt_author': u'Claus Beerta', u'cmt_description': u"This tool is really beautifull, i've used most o...sound-juicer is by far the best ! Thanx for it :)", u'cmt_item': u"This tool is really beautifull, i've used most o...ound-juicer is by far the best ! Thanx for it :)\n", u'cmt_link': u'http://claus.beerta.de', u'cmt_pubDate': 'Mon May 26 11:39:23 2003', u'cmt_source': '', 'cmt_time': 1053945563.33, u'cmt_title': u'Sound Juicer 0.3'}, {u'cmt_author': u'Ross Burton', u'cmt_description': u'Gee, thanks :)', u'cmt_item': u'Gee, thanks :)\n', u'cmt_link': '', u'cmt_pubDate': 'Wed May 28 11:47:17 2003', u'cmt_source': '', 'cmt_time': 1054118837.61, u'cmt_title': u'Sound Juicer 0.3'}, {u'cmt_author': u'Georg Funke', u'cmt_description': u'sound-juicer 0.2.1 works perfect, but 0.3 stop w...e: An Titelnummer konnte nicht gesprungen werden)', u'cmt_item': u'sound-juicer 0.2.1 works perfect, but 0.3 stop w...: An Titelnummer konnte nicht gesprungen werden)\n', u'cmt_link': '', u'cmt_pubDate': 'Mon Jun 2 14:51:51 2003', u'cmt_source': '', 'cmt_time': 1054561911.05, u'cmt_title': u'Sound Juicer 0.3'}, None, None], cmt = None |
TypeError: unsubscriptable object
args =
('unsubscriptable object',)