> Ah, yes, there was a ToscaWidgets bug which masked the proper error handling. 
> I mean in my existing projects I've moved to 1.0rc1, I haven't seen this 
> issue. Were you saying that this was happening with a non-toscawidgets 
> project using 0.10/1.0?

Yes.  Sorry for the imprecision. In 1.0rc1 I am getting an Internal
Server error on undefined Mako name instead of seeing the expected
mako template error in the browser. Controller errors such as 'name
not defined' correctly produce the WebError Traceback, so this seems
limited to Mako errors.

This is a new project on 1.0rc1, I have AuthKit in the middleware (and
am using FormAlchemy).  I had installed tw.Forms but abandoned it when
it failed to work out of the box (I removed the middleware and the
import from config/middleware.py).

A stack trace follows below in case it helps.

--Rich


Traceback (most recent call last):
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/paste/
httpserver.py", line 1068, in process_request_in_thread
    self.finish_request(request, client_address)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/paste/
httpserver.py", line 442, in handle
    BaseHTTPRequestHandler.handle(self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/paste/
httpserver.py", line 437, in handle_one_request
    self.wsgi_execute()
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/paste/
httpserver.py", line 287, in wsgi_execute
    self.wsgi_start_response)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/paste/
cascade.py", line 130, in __call__
    return self.apps[-1](environ, start_response)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/paste/
registry.py", line 375, in __call__
    app_iter = self.application(environ, start_response)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/Pylons-1.0rc1-
py2.6.egg/pylons/middleware.py", line 150, in __call__
    self.app, environ, catch_exc_info=True)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/Pylons-1.0rc1-
py2.6.egg/pylons/util.py", line 48, in call_wsgi_application
    app_iter = application(environ, start_response)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/weberror/
evalexception.py", line 235, in __call__
    return self.respond(environ, start_response)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/weberror/
evalexception.py", line 483, in respond
    return debug_info.content()
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/weberror/
evalexception.py", line 545, in content
    result = tmpl_formatter(self.exc_value)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/Pylons-1.0rc1-
py2.6.egg/pylons/error.py", line 41, in mako_html_data
    css=False)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/mako/
template.py", line 189, in render
    return runtime._render(self, self.callable_, args, data)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/mako/
runtime.py", line 403, in _render
    _render_context(template, callable_, context, *args,
**_kwargs_for_callable(callable_, data))
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/mako/
runtime.py", line 434, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/mako/
runtime.py", line 457, in _exec_template
    callable_(context, *args, **kwargs)
  File "memory:0x103696350", line 54, in render_body
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/mako/
exceptions.py", line 88, in __init__
    self.records = self._init(traceback)
  File "/Users/kazin/env/vng/lib/python2.6/site-packages/mako/
exceptions.py", line 166, in _init
    line = line.decode('ascii', 'replace')
AttributeError: 'NoneType' object has no attribute 'decode'

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to