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: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 273, in run applyFilters('beforeFinalize') File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py", line 641, in applyFilters method() 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): python-cherrypy-2.1.0-1 How reproducible: Always Steps to Reproduce: 1. Install the two attached files. 2. ./hello.py 3. firefox http://localhost:8888/ 4. Observe the traceback Actual Results: cherrypy tracebacks. Expected Results: Display my web application. Additional info: Upstream bug report: http://www.cherrypy.org/ticket/381
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.