[Zope] zctl.py
Andreas Jung
Andreas Jung" <andreas@andreas-jung.com
Fri, 10 Aug 2001 18:52:35 -0400
connect() expects a tuple (host,port). So just but braces
around the argument.
Andreas
----- Original Message -----
From: "Todd Hepler" <thepler@caspiannetworks.com>
To: <zope@zope.org>
Sent: Freitag, 10. August 2001 16:28
Subject: [Zope] zctl.py
> I'm having trouble with the zctl.py script off of
> http://www.zope.org/Members/dshaw/AdvancedSiteSetup
>
> It worked for me with Python-1.5.2 and Zope-2.3.3-src. Now I'm trying
> it with Python-2.1.1 and Zope-2.4.0-src and I get:
>
> > ./zctl.py start
> Traceback (most recent call last):
> File "./zctl.py", line 331, in ?
> _dispatch()
> File "./zctl.py", line 328, in _dispatch
> globals()[action](args)
> File "./zctl.py", line 131, in start
> start_zeo(zeo_args)
> File "./zctl.py", line 144, in start_zeo
> if host == 'localhost' and not _check_for_service(host, port):
> File "./zctl.py", line 300, in _check_for_service
> s.connect(host, int(port))
> TypeError: connect() takes exactly 1 argument (2 given)
>
> Is this zctl.py supposed to work with Python-2.1.1? Did the args for
> socket.socket.connect() change from 1.5.2 to 2.1.1?
>
> -todd
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )