Skip to content

Instantly share code, notes, and snippets.

@lukexi
Created June 6, 2009 10:59

Revisions

  1. lukexi created this gist Jun 6, 2009.
    91 changes: 91 additions & 0 deletions gistfile1.pytb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,91 @@
    Traceback (most recent call last):
    File "/Library/Python/2.5/site-packages/CherryPy-3.1.0-py2.5.egg/cherrypy/_cprequest.py", line 609, in respond
    File "/Library/Python/2.5/site-packages/CherryPy-3.1.0-py2.5.egg/cherrypy/_cprequest.py", line 98, in run
    File "/Library/Python/2.5/site-packages/CherryPy-3.1.0-py2.5.egg/cherrypy/_cprequest.py", line 58, in __call__
    File "/Users/LukeIannini/hellochair/slt-adserver/cherrypy_tools.py", line 15, in mako_tool_callback
    cherrypy.response.body = t.render(**args)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Mako-0.1.6-py2.5.egg/mako/template.py", line 110, in render
    return runtime._render(self, self.callable_, args, data)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Mako-0.1.6-py2.5.egg/mako/runtime.py", line 287, in _render
    _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Mako-0.1.6-py2.5.egg/mako/runtime.py", line 304, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Mako-0.1.6-py2.5.egg/mako/runtime.py", line 337, in _exec_template
    callable_(context, *args, **kwargs)
    File "/tmp/mako_module/dashboard.mak.py", line 20, in render_body
    context.write(unicode(next.body(**context.kwargs)))
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/Mako-0.1.6-py2.5.egg/mako/runtime.py", line 193, in <lambda>
    return lambda *args, **kwargs:callable_(self.context, *args, **kwargs)
    File "/tmp/mako_module/dashboard.sites.mak.py", line 42, in render_body
    context.write(unicode(site_table))
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/base.py", line 755, in __str__
    return self.render()
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/base.py", line 527, in render
    return super(Widget, self).render(**kw)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/view.py", line 220, in render
    return tw.framework.engines.render(self, **kw)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/view.py", line 41, in _renderer
    output = renderer(info=kw, template=template)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/view.py", line 167, in _render_xhtml
    return engine.render(**kw)
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/plugin.py", line 110, in render
    return self.transform(info, template).render(**kwargs)
    File "build/bdist.macosx-10.3-fat/egg/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
    File "build/bdist.macosx-10.3-fat/egg/genshi/output.py", line 60, in encode
    return _encode(u''.join(list(iterator)))
    File "build/bdist.macosx-10.3-fat/egg/genshi/output.py", line 311, in __call__
    for kind, data, pos in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/output.py", line 698, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
    File "build/bdist.macosx-10.3-fat/egg/genshi/output.py", line 532, in __call__
    for ev in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 569, in _include
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/markup.py", line 245, in _match
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 533, in _eval
    for event in substream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 496, in _eval
    for kind, data, pos in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 551, in _flatten
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/core.py", line 283, in _ensure
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 569, in _include
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/markup.py", line 245, in _match
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 543, in _exec
    for event in stream:
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 520, in _eval
    result = _eval_expr(data, ctxt, **vars)
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/base.py", line 286, in _eval_expr
    retval = expr.evaluate(ctxt)
    File "build/bdist.macosx-10.3-fat/egg/genshi/template/eval.py", line 180, in evaluate
    return eval(self.code, _globals, {'__data__': data})
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/tw.forms-0.9.6-py2.5.egg/tw/forms/templates/table_form.html", line 14, in <Expression u'XML(field.display(value_for(field)), **args_for(field))'>
    <span py:replace="XML(field.display(value_for(field)), **args_for(field))" />
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/base.py", line 541, in display
    kw = self.prepare_dict(value, kw)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/tw.forms-0.9.6-py2.5.egg/tw/forms/core.py", line 232, in prepare_dict
    kw = super(InputWidget, self).prepare_dict(value, kw, adapt=False)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/base.py", line 584, in prepare_dict
    self.update_params(d)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/tw.forms-0.9.6-py2.5.egg/tw/forms/fields.py", line 127, in update_params
    super(FormField, self).update_params(d)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/tw.forms-0.9.6-py2.5.egg/tw/forms/core.py", line 250, in update_params
    super(InputWidget, self).update_params(d)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/base.py", line 645, in update_params
    attr = getattr(self, k, None)
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/base.py", line 177, in id
    [w.id_path_elem for w in self.path if w.id_path_elem]
    File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ToscaWidgets-0.9.6-py2.5.egg/tw/core/base.py", line 222, in path
    while item:
    ReferenceError: weakly-referenced object no longer exists