#2900: mod_python: txt format view of wiki pages throws exception
---------------------------------+------------------------------------------
Reporter: athomas | Owner: cmlenz
Type: defect | Status: new
Priority: normal | Milestone:
Component: mod_python frontend | Version: devel
Severity: normal | Resolution:
Keywords: wsgi |
---------------------------------+------------------------------------------
Comment (by athomas):
Actually, my last comment seems to not be 100% correct. I get an assertion
failure under FCGI. The following patch fixes it:
{{{
#!diff
Index: trac/web/_fcgi.py
===================================================================
--- trac/web/_fcgi.py (revision 3026)
+++ trac/web/_fcgi.py (working copy)
@@ -1188,7 +1188,7 @@
result = None
def write(data):
- assert type(data) is str, 'write() argument must be string'
+ assert isinstance(data, basestring), 'write() argument must
be string'
assert headers_set, 'write() before start_response()'
if not headers_sent:
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2900>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets