Package: trac Version: 0.10-3 Severity: normal I was struck by a baffling problem described at http://trac.edgewall.org/ticket/3984
Summary: it is impossible to attach anything to the trac system with the combination of trac 0.10 and python 2.4.4. Attempting to do so would cause the following error message (in apache's logs): [error] [client 192.168.0.254] PythonHandler trac.web.modpython_frontend: TypeError: readline() takes exactly 1 argument (2 given), referer: ... The fix is queued for 0.10.1, and would be nice to have even earlier than that release, especially if the release is too late to squeeze into etch. Patch is attached. Taken from http://trac.edgewall.org/changeset/4038 Thanks, Kel.
diff -Nrup trac-0.10.orig/trac/web/modpython_frontend.py trac-0.10/trac/web/modpython_frontend.py --- trac-0.10.orig/trac/web/modpython_frontend.py 2006-07-27 04:00:02.000000000 +1000 +++ trac-0.10/trac/web/modpython_frontend.py 2006-11-06 15:00:22.000000000 +1000 @@ -33,8 +33,8 @@ class InputWrapper(object): def read(self, size=-1): return self.req.read(size) - def readline(self): - return self.req.readline() + def readline(self, size=-1): + return self.req.readline(size) def readlines(self, hint=-1): return self.req.readlines(hint)