marrow/WebCore — Issue #61: JSON response serializer throws exception if passed anything but a dict
Author: aGHz
Created: 2011-11-19 05:44:19+00:00
State: open

Offending code:
```return 'json:', [ 'foo' ]```

Traceback (paths redacted):

URL: http://localhost:8080/
File 'lib/python2.7/site-packages/weberror/evalexception.py', line 431 in respond
app_iter = self.application(environ, detect_start_response)
File 'lib/python2.7/site-packages/paste/registry.py', line 379 in __call__
app_iter = self.application(environ, start_response)
File 'lib/python2.7/site-packages/paste/config.py', line 105 in register_config
app_iter = application(environ, start_response)
File 'usr/src/WebCore/web/db/api.py', line 73 in __call__
result = self.application(environ, local_start)
File 'usr/src/WebCore/web/core/templating.py', line 134 in __call__
raise TypeError("Invalid tuple values returned to TemplatingMiddleware.")
TypeError: Invalid tuple values returned to TemplatingMiddleware.