Re: [Zope3-Users] error on registration in the zmi

2006-10-16 Thread FB
On Sun, Oct 15, 2006 at 05:58:26PM +0200, Christophe Combelles wrote:
 each time I want to register any object from the ZMI I get this error.
 (zope 3.3.0 Python 2.4.4c0)
 Do you have any clue?

Yes. Apply this patch to the zope3-sources:

/http.py
--- src/zope/publisher/http.py.old 2006-10-04 15:11:04.0 +0200
+++ src/zope/publisher/http.py  2006-10-04 15:11:04.0 +0200
@@ -205,7 +205,7 @@
 return data

 def readline(self,size=None):
-data = self.stream.readline(size)
+data = self.stream.readline()
 self.cacheStream.write(data)
 return data

Regards,

Frank
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] error on registration in the zmi

2006-10-15 Thread Christophe Combelles

Christophe Combelles a écrit :

each time I want to register any object from the ZMI I get this error.
(zope 3.3.0 Python 2.4.4c0)
Do you have any clue?



I've found something:
the 2.4.4c0 version of debian is actually 2.4.3-9
I've reverted to 2.4.3-8 and the problem has disappeared!

There's something wrong with the latest fix
http://packages.debian.org/changelogs/pool/main/p/python2.4/python2.4_2.4.3-9/changelog.html

it seems python 2.4.4 won't be good for zope 3.3?





2006-10-15T17:49:03 ERROR SiteError http://localhost:9676
Traceback (most recent call last):
  File /usr/lib/python2.4/site-packages/zope/publisher/publish.py, 
line 126, in publish

request.processInputs()
  File /usr/lib/python2.4/site-packages/zope/publisher/browser.py, 
line 263, in processInputs

fs = FieldStorage(fp=fp, environ=self._environ, keep_blank_values=1)
  File cgi.py, line 530, in __init__
self.read_multi(environ, keep_blank_values, strict_parsing)
  File cgi.py, line 650, in read_multi
environ, keep_blank_values, strict_parsing)
  File cgi.py, line 532, in __init__
self.read_single()
  File cgi.py, line 665, in read_single
self.read_lines()
  File cgi.py, line 687, in read_lines
self.read_lines_to_outerboundary()
  File cgi.py, line 715, in read_lines_to_outerboundary
line = self.fp.readline(116)
TypeError: readline() takes exactly 1 argument (2 given)
127.0.0.1 - - [15/Oct/2006:17:49:03 +0200] POST 
/jhgjhgj/@@addRegistration.html HTTP/1.1 500 84 
http://localhost:9676/jhgjhgj/@@addRegistration.html?; Mozilla/5.0 
(X11; U; Linux i686; fr; rv:1.8.0.7) Gecko/20060830 Firefox/1.5.0.7 
(Debian-1.5.dfsg+1.5.0.7-2)

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users




___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users