Bug 172272 - cherrypy-2.1 breaks with quixote templates
Summary: cherrypy-2.1 breaks with quixote templates
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cherrypy
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gijs Hollestelle
QA Contact: Fedora Extras Quality Assurance
URL: http://www.cherrypy.org/ticket/381
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-02 05:56 UTC by Toshio Kuratomi
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-03 03:23:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Toshio Kuratomi 2005-11-02 05:56:53 UTC
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

Comment 1 Toshio Kuratomi 2005-11-03 03:23:58 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.