[ZCM] [ZC] 1548/ 3 Comment "Client.py broken because of deprecated httplib usage"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Mar 15 13:07:29 EST 2005


Issue #1548 Update (Comment) "Client.py broken because of deprecated httplib usage"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1548

==============================================================
= Comment - Entry #3 by peterbe on Mar 15, 2005 1:07 pm

Solution: In Client.py change the line::

 h=HTTP()

to this which works in Python2.3::

 h=HTTP(self.host)

I don't know how to provide a patch. But the problem is still in Zope2.7.4 (haven't tested any higher version numbers) and it must be fixed soon.

I think this also affects bin/load_site.py

________________________________________
= Comment - Entry #2 by efge on Nov 10, 2004 12:12 pm

HTTP() works fine in my python 2.3.4.

The RemoteException call looks wrong, agreed.

________________________________________
= Request - Entry #1 by Anonymous User on Oct 21, 2004 2:36 pm

Client.py line 144:

  h=HTTP()

This is deprecated as of Python 2.2 and causes an exception in Python 2.3.4. The HTTP class has been deprecated in favour of HTTPConnection. Also, on line 154, RemoteException is being passed the wrong number of parameters.
==============================================================



More information about the Zope-Collector-Monitor mailing list