Red Hat Bugzilla – Bug 172272
cherrypy-2.1 breaks with quixote templates
Last modified: 2007-11-30 17:11:16 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7
Description of problem:
On upgrading from python-cherrypy-2.0.0 to python-cherrypy-2.1.0, my web applications broke. They use the quixote PTL templating language and there's some bad interaction going on.
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 273, in run
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 641, in applyFilters
File "/usr/lib/python2.4/site-packages/cherrypy/lib/filter/logdebuginfofilter.py", line 62, in beforeFinalize
body = ''.join([chunk for chunk in cherrypy.response.body])
TypeError: iteration over non-sequence
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install the two attached files.
3. firefox http://localhost:8888/
4. Observe the traceback
Actual Results: cherrypy tracebacks.
Expected Results: Display my web application.
Upstream bug report:
Well, upstream didn't like either of my approaches to fixing the problem but
suggested an alternative involving defining a QuixoteFilter. See the upstream
ticket for the solutions.
An example QuixoteFilter could be a good document to reference for people
migrating but otherwise this is NOTABUG.