[Grok-dev] HTTP PUT strange behavior
adi at modiadi.com
Thu Jun 11 16:13:34 EDT 2009
I am late with the answer, but the fix works.
I copied some changes from 3.5.3 in to 3.4.6 and it works. Here it is
what I did :
The file is zope.publisher-3.4.6-py2.4.egg/zope/publisher/http.py and
the diff looks like this :
> self.size = size and int(size) or -1
< # Previous versions of Twisted did not support the ``size``
< # See http://twistedmatrix.com/trac/ticket/1451
< # https://bugs.launchpad.net/zope3/+bug/98284
< # Note, however, that we cannot pass a size of None to
< # objects, or we'll get a TypeError: an integer is required
< if size is not None:
< data = self.stream.readline(size)
< data = self.stream.readline()
> # XXX We should pass the ``size`` argument to
> # but twisted.web2.wsgi.InputStream.readline() doesn't
> # See http://www.zope.org/Collectors/Zope3-dev/535 and
> # http://twistedmatrix.com/trac/ticket/1451
> data = self.stream.readline()
< if isinstance(t, (ClassType, type)):
> if isinstance(t, (ClassType, type)):
This is all.
Thank you all for the help and please excuse me for the late fix.
On 4 juin 09, at 09:09, Michael Haubenwallner wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> adi at modiadi.com wrote:
>> I will look on how they fixed the EOF thing in 3.5.3 and if&how I can
>> patch the 3.4.6 egg.
>> I will make some time for this tonight and let you all know about the
> Hi, did patching fix your problem?
> I am asking, because in that case i would apply the fix to the z.p 3.4
> - --
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
More information about the Grok-dev