Apparently the error wasn't displaying entirely (for some reason). I
am now getting the following :

Traceback: Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/
cherrypy/_cphttptools.py", line 134, in _run inst.set_response()
File "/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/
cherrypy/_cperror.py", line 173, in set_response handler(self.status,
self.message)
 File "/home/tom/cinego/cinego/controllers.py", line 140, in
_cp_on_http_error content_type, mapping)
File "/usr/lib/python2.5/site-packages/TurboGears-1.1b3-py2.5.egg/
turbogears/controllers.py", line 96, in _process_output
fragment=fragment)
File "/usr/lib/python2.5/site-packages/TurboGears-1.1b3-py2.5.egg/
turbogears/view/base.py", line 194, in render return engine.render
(**kw)
File "build/bdist.linux-i686/egg/genshi/template/plugin.py", line 110,
in render return self.transform(info, template).render(**kwargs)
File "build/bdist.linux-i686/egg/genshi/core.py", line 179, in render
return encode(generator, method=method, encoding=encoding, out=out)
File "build/bdist.linux-i686/egg/genshi/output.py", line 60, in encode
return _encode(u''.join(list(iterator)))
File "build/bdist.linux-i686/egg/genshi/output.py", line 425, in
__call__ for kind, data, pos in stream:
File "build/bdist.linux-i686/egg/genshi/output.py", line 753, in
__call__ for kind, data, pos in stream:
File "build/bdist.linux-i686/egg/genshi/output.py", line 592, in
__call__ for kind, data, pos in stream:
File "build/bdist.linux-i686/egg/genshi/output.py", line 698, in
__call__ for kind, data, pos in chain(stream, [(None, None, None)]):
File "build/bdist.linux-i686/egg/genshi/output.py", line 532, in
__call__ for ev in stream:
File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
for event in stream:
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569,
in _include for event in stream:
File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 298,
in _match ctxt, start=idx + 1, **vars):
File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 245,
in _match for event in stream:
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543,
in _exec for event in stream:
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 520,
in _eval result = _eval_expr(data, ctxt, **vars)
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 286,
in _eval_expr retval = expr.evaluate(ctxt)
File "build/bdist.linux-i686/egg/genshi/template/eval.py", line 180,
in evaluate return eval(self.code, _globals, {'__data__': data})
File "/home/tom/cinego/cinego/templates/master.html", line 11, in
<Expression u'ET(js.display())'>  <link py:for="js in tg_js_head"
py:replace="ET(js.display())" />
File "/usr/lib/python2.5/site-packages/TurboGears-1.1b3-py2.5.egg/
turbogears/widgets/meta.py", line 91, in lockwidget output =
self.__class__.display(self, *args, **kw)
File "/usr/lib/python2.5/site-packages/TurboGears-1.1b3-py2.5.egg/
turbogears/widgets/base.py", line 286, in display if request_available
() and request.tg_template_enginename == 'genshi' \
File "/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/
cherrypy/__init__.py", line 47, in __getattr__ return getattr
(childobject, name)
 AttributeError: 'Request' object has no attribute
'tg_template_enginename' Server'Request' object has no attribute
'tg_template_enginename'
If anyone can help, this probably means more than the previous thing I
posted.
Tom

On Aug 17, 4:44 pm, zaf <[email protected]> wrote:
> Hi everyone,
> I'm trying to upgrade to TG1.1b3 (b4 is not available in easy_install)
> and I have a problem with error reporting.
> Based on this page 
> :http://groups.google.com/group/turbogears/browse_frm/thread/61a48b1f7...
> I did the following :http://pastebin.com/m7cdf7404
>
>     def _cp_on_http_error(self, status, message):
>
>         log.exception('%s %s', status, message)
>
>         # Make sure response is properly prepared
>
>         from cherrypy import _cputil
>         _cputil._cp_on_http_error(status, message)
>
>         # Customize returned page
>
>         title = {
>             400: u'Bad File Request',
>             401: u'Unauthorized',
>             403: u'Forbidden/Access Denied',
>             404: u'File Not Found',
>             500: u'Internal Error',
>             501: u'Not Implemented',
>             502: u'Overload',
>         }.get(status, message or u'Failure')
>
>         import traceback, StringIO
>         detailsio = StringIO.StringIO()
>         traceback.print_exc(file = detailsio)
>
>         output = dict(
>             status = status,
>             message = message or '-',
>             page_title = title,
>             admin = 'admin' in identity.current.identity().groups,
>             url = "%s %s" % (cherrypy.request.method,
> cherrypy.request.path),
>             details = detailsio.getvalue())
>
>         template = "cinego.templates.errors"
>         format = 'html'
>         content_type = 'text/html'
>         mapping = None
>
>         # Return customized page
>         body = controllers._process_output(output, template, format,
> content_type, mapping)
>         cherrypy.response.headers['Content-Length'] = len(body)
>         cherrypy.response.body = body
>
> and this now causes the following error :
>
> Traceback: Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/
> cherrypy/_cphttptools.py", line 134, in _run inst.set_response()
> File "/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/
> cherrypy/_cperror.py", line 173, in set_response handler(self.status,
> self.message)
> File "/home/tom/cinego/cinego/controllers.py", line 141, in
> _cp_on_http_error content_type, mapping)
> File "/usr/lib/python2.5/site-packages/TurboGears-1.1b3-py2.5.egg/
> turbogears/controllers.py", line 96, in _process_output
> fragment=fragment)
> File "/usr/lib/python2.5/site-packages/TurboGears-1.1b3-py2.5.egg/
> turbogears/view/base.py", line 194, in render re
>
> Can anyone tell me why this isn't working anymore ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to