[Zope-Coders] Re: Contents of Zope-Coders digest...
Jyoti Joshi
Jyoti Joshi" <jyotijoshiin@rediffmail.com
21 Jul 2003 08:16:43 -0000
On Sun, 20 Jul 2003 zope-coders-request@zope.org wrote :
>Send Zope-Coders mailing list submissions to
> zope-coders@zope.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.zope.org/mailman/listinfo/zope-coders
>or, via email, send a message with subject or body 'help' to
> zope-coders-request@zope.org
>
>You can reach the person managing the list at
> zope-coders-admin@zope.org
>
>When replying, please edit your Subject line so it is more
>specific
>than "Re: Contents of Zope-Coders digest..."
>
>
>Today's Topics:
>
> 1. Re: [Zope-Checkins] CVS: Zope/lib/python/ZServer -
>utils.py:1.1 __init__.py:1.30 (Stuart Bishop)
> 2. Re: Re: [Zope-Checkins] CVS: Zope/lib/python/ZServer -
>utils.py:1.1 __init__.py:1.30 (Stuart Bishop)
> 3. Linux Test Results - Zope HEAD - Too many errors :-(
>(zope-tests@squishdot.org)
> 4. Linux Test Results - Zope 2.6 branch - OK :-)
>(zope-tests@squishdot.org)
> 5. Re: Re: [Zope-Checkins] CVS: Zope/lib/python/ZServer
> - utils.py:1.1 __init__.py:1.30 (Chris McDonough)
> 6. Re: Re: [Zope-Checkins] CVS: Zope/lib/python/ZServer -
>utils.py:1.1 __init__.py:1.30 (Anthony Baxter)
>
>--__--__--
>
>Message: 1
>Date: Sun, 20 Jul 2003 11:09:39 +1000
>Cc: zope-coders@zope.org
>To: Chris McDonough <chrism@zope.com>
> From: Stuart Bishop <stuart.b@commonground.com.au>
>Subject: [Zope-Coders] Re: [Zope-Checkins] CVS:
>Zope/lib/python/ZServer - utils.py:1.1 __init__.py:1.30
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Sunday, July 20, 2003, at 06:17 AM, Chris McDonough wrote:
>
> > def getMaxSockets():
> > from medusa.test import max_sockets
> > return max_sockets.max_select_sockets()
>
>Calling max_sockets.max_select_sockets increases the startup
>time
>on a maxed out 1GHz PowerBook running OSX 10.2 by 20 seconds,
>which
>we found out in the Melbourne Zope 3 sprint (Opening that many
>sockets
>causes many netinfo database lookups, so watch the CPU
>utilization of
>lookupd go through the roof). I have no idea if this is due to a
>bug
>in the Python sockets module, a bug in the max_server_sockets
>code, or
>just the way it is supposed to work.
>
>In the Zope3 tree, this function and the others in
>maxsockets.py
>just return 100.
>
>Any objection to applying the same fix to the Zope HEAD?
>
>Should I only do it "if sys.platform == 'darwin'"?
>
>
>This method is not called on the 2.6 branch.
>
>
>- --
>Stuart Bishop <zen@shangri-la.dropbear.id.au>
>http://shangri-la.dropbear.id.au/
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.1 (Darwin)
>
>iD8DBQE/GevYh8iUz1x5geARAkqQAKDsIR/U8bMV3equqwOoP1B4JYCWjgCguaHx
>Zu3N85Ncdu4pvyeE6uzXBJk=
>=PJWr
>-----END PGP SIGNATURE-----
>
>
>
>--__--__--
>
>Message: 2
>Date: Sun, 20 Jul 2003 11:30:06 +1000
>Subject: Re: [Zope-Coders] Re: [Zope-Checkins] CVS:
>Zope/lib/python/ZServer - utils.py:1.1 __init__.py:1.30
>Cc: Chris McDonough <chrism@zope.com>,
> zope-coders@zope.org
>To: zope-coders@zope.org
> From: Stuart Bishop <stuart.b@commonground.com.au>
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>
>On Sunday, July 20, 2003, at 11:09 AM, Stuart Bishop wrote:
>
> > lookupd go through the roof). I have no idea if this is due to
>a bug
> > in the Python sockets module, a bug in the max_server_sockets
>code, or
> > just the way it is supposed to work.
>
> > This method is not called on the 2.6 branch.
>
>Actually, the same code *is* being called in the 2.6 branch. It
>looks like the problem is changes in Python's socket code
>between
>2.1 and 2.2.
>
>Python 2.1.3 (#1, Apr 18 2003, 07:04:50)
>[GCC 3.1 20020420 (prerelease)] on darwin6
>Type "copyright", "credits" or "license" for more information.
> >>> import time, max_sockets
> >>> time.ctime(); max_sockets.max_server_sockets();
>time.ctime()
>'Sun Jul 20 11:24:13 2003'
>253
>'Sun Jul 20 11:24:13 2003'
> >>>
>
>Python 2.2.3 (#2, Jul 8 2003, 00:07:27)
>[GCC 3.1 20020420 (prerelease)] on darwin
>Type "help", "copyright", "credits" or "license" for more
>information.
> >>> import time, max_sockets
> >>> time.ctime(); max_sockets.max_server_sockets();
>time.ctime()
>'Sun Jul 20 11:22:52 2003'
>253
>'Sun Jul 20 11:23:16 2003'
> >>>
>
>I'll stick a bug report in the Python tracker, although if this
>is
>actually a Python bug I doubt it will get fixed for Python2.3
>and
>we won't be seeing another 2.2 release for some time, if ever.
>So I'd still like to get this resolved in the Zope HEAD.
>
>- --
>Stuart Bishop <zen@shangri-la.dropbear.id.au>
>http://shangri-la.dropbear.id.au/
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.1 (Darwin)
>
>iD8DBQE/GfCmh8iUz1x5geARAhNkAJ4uULhOJAVDE/xFR0xWm93JiHodPgCeIoQk
>4sPAyYpZywL5Ba94qZZqBqE=
>=0UA4
>-----END PGP SIGNATURE-----
>
>
>
>--__--__--
>
>Message: 3
> From: zope-tests@squishdot.org
>To: zope-coders@zope.org
>Date: Sun, 20 Jul 2003 04:13:35 +0100
>Subject: [Zope-Coders] Linux Test Results - Zope HEAD - Too many
>errors :-(
>
>======================================================================
>Python Version:2.2.3 (#1, Jun 10 2003, 13:52:48)
>[GCC 2.95.2 20000220 (Debian GNU/Linux)]
>
>Modules included:
>Zope (HEAD)
>
>Warning: no test input files found!!!
>/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/SearchIndex/__init__.py:19:
>DeprecationWarning: The usage of the SearchIndex package is
>deprecated since Zope 2.4.
>This package is only kept for backwards compatibility for a
>while
>and will go away in a future release.
>
>Please use instead the re-factored modules in
>Products/PluginIndexes.
>
> warnings.warn("The usage of the SearchIndex package is
>deprecated since \
>======================================================================
>ERROR: test_fcgi_factory
>(test_config.ZServerConfigurationTestCase)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 113, in test_fcgi_factory
> factory = self.load_factory("""\
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 48, in load_factory
> StringIO.StringIO(text))
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 45, in loadConfigFile
> return _get_config_loader(schema, overrides).loadFile(file,
>url)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 55, in _get_config_loader
> loader = ConfigLoader(schema)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 163, in __init__
> if schema.isabstract():
>AttributeError: 'NoneType' object has no attribute 'isabstract'
>
>======================================================================
>ERROR: test_ftp_factory
>(test_config.ZServerConfigurationTestCase)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 135, in test_ftp_factory
> factory = self.load_factory("""\
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 48, in load_factory
> StringIO.StringIO(text))
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 45, in loadConfigFile
> return _get_config_loader(schema, overrides).loadFile(file,
>url)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 55, in _get_config_loader
> loader = ConfigLoader(schema)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 163, in __init__
> if schema.isabstract():
>AttributeError: 'NoneType' object has no attribute 'isabstract'
>
>======================================================================
>ERROR: test_http_factory
>(test_config.ZServerConfigurationTestCase)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 66, in test_http_factory
> factory = self.load_factory("""\
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 48, in load_factory
> StringIO.StringIO(text))
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 45, in loadConfigFile
> return _get_config_loader(schema, overrides).loadFile(file,
>url)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 55, in _get_config_loader
> loader = ConfigLoader(schema)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 163, in __init__
> if schema.isabstract():
>AttributeError: 'NoneType' object has no attribute 'isabstract'
>
>======================================================================
>ERROR: test_icp_factory
>(test_config.ZServerConfigurationTestCase)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 161, in test_icp_factory
> factory = self.load_factory("""\
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 48, in load_factory
> StringIO.StringIO(text))
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 45, in loadConfigFile
> return _get_config_loader(schema, overrides).loadFile(file,
>url)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 55, in _get_config_loader
> loader = ConfigLoader(schema)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 163, in __init__
> if schema.isabstract():
>AttributeError: 'NoneType' object has no attribute 'isabstract'
>
>======================================================================
>ERROR: test_monitor_factory
>(test_config.ZServerConfigurationTestCase)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 148, in test_monitor_factory
> factory = self.load_factory("""\
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 48, in load_factory
> StringIO.StringIO(text))
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 45, in loadConfigFile
> return _get_config_loader(schema, overrides).loadFile(file,
>url)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 55, in _get_config_loader
> loader = ConfigLoader(schema)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 163, in __init__
> if schema.isabstract():
>AttributeError: 'NoneType' object has no attribute 'isabstract'
>
>======================================================================
>ERROR: test_pcgi_factory
>(test_config.ZServerConfigurationTestCase)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 104, in test_pcgi_factory
> factory = self.load_unix_domain_factory("""\
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 57, in load_unix_domain_factory
> factory = self.load_factory(text % fn)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 48, in load_factory
> StringIO.StringIO(text))
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 45, in loadConfigFile
> return _get_config_loader(schema, overrides).loadFile(file,
>url)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 55, in _get_config_loader
> loader = ConfigLoader(schema)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 163, in __init__
> if schema.isabstract():
>AttributeError: 'NoneType' object has no attribute 'isabstract'
>
>======================================================================
>ERROR: test_webdav_source_factory
>(test_config.ZServerConfigurationTestCase)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 86, in test_webdav_source_factory
> factory = self.load_factory("""\
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZServer/tests/test_config.py",
>line 48, in load_factory
> StringIO.StringIO(text))
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 45, in loadConfigFile
> return _get_config_loader(schema, overrides).loadFile(file,
>url)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 55, in _get_config_loader
> loader = ConfigLoader(schema)
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/ZConfig/loader.py",
>line 163, in __init__
> if schema.isabstract():
>AttributeError: 'NoneType' object has no attribute 'isabstract'
>
>======================================================================
>ERROR: testBigBoolean (testPythonScript.TestPythonScriptNoAq)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/Products/PythonScripts/tests/testPythonScript.py",
>line 127, in testBigBoolean
> true = self._newPS(readf('big_boolean'))()
> File "testPythonScript.py", line 34, in readf
>IOError: [Errno 2] No such file or directory:
>'/stuff/chrisw/ZopeTests/sandbox/Zope/build-base/build-lib/Products/PythonScripts/tests/tscripts/big_boolean.ps'
>
>======================================================================
>ERROR: testBooleanMap (testPythonScript.TestPythonScriptNoAq)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/Products/PythonScripts/tests/testPythonScript.py",
>line 152, in testBooleanMap
> true = self._newPS(readf('boolean_map'))()
> File "testPythonScript.py", line 34, in readf
>IOError: [Errno 2] No such file or directory:
>'/stuff/chrisw/ZopeTests/sandbox/Zope/build-base/build-lib/Products/PythonScripts/tests/tscripts/boolean_map.ps'
>
>======================================================================
>ERROR: testComplexPrint (testPythonScript.TestPythonScriptNoAq)
>----------------------------------------------------------------------
>Traceback (most recent call last):
> File
>"/stuff/chrisw/ZopeTests/sandbox/Zope/lib/python/Products/PythonScripts/tests/testPythonScript.py",
>line 143, in testComplexPrint
> txt = self._newPS(readf('complex_print'))()
> File "testPythonScript.py", line 34, in readf
>IOError: [Errno 2] No such file or directory:
>'/stuff/chrisw/ZopeTests/sandbox/Zope/build-base/build-lib/Prod
><truncated>
>
>
>--__--__--
>
>Message: 4
> From: zope-tests@squishdot.org
>To: zope-coders@zope.org
>Date: Sun, 20 Jul 2003 04:13:35 +0100
>Subject: [Zope-Coders] Linux Test Results - Zope 2.6 branch - OK
>:-)
>
>======================================================================
>Python Version:2.1.3 (#1, May 20 2002, 12:02:16)
>[GCC 2.95.2 20000220 (Debian GNU/Linux)]
>
>Modules included:
>Zope (Zope-2_6-branch)
>
>----------------------------------------------------------------------
>Ran 1765 tests in 452.946s
>
>OK
>
>
>
>--__--__--
>
>Message: 5
>Subject: Re: [Zope-Coders] Re: [Zope-Checkins] CVS:
>Zope/lib/python/ZServer
> - utils.py:1.1 __init__.py:1.30
> From: Chris McDonough <chris.mcdonough@cox.net>
>To: Stuart Bishop <stuart.b@commonground.com.au>
>Cc: zope-coders@zope.org
>Date: 19 Jul 2003 23:23:49 -0400
>
>Holy hat! I had no idea what that code was doing. It's pretty
>dumb to
>dwim this setting in this way even if it wasn't so expensive.
>
>We should make this a config file option for 2.7. I will do so
>now...
>
>What about 2.6? Another envvar? (shudder)
>
>- C
>
>On Sat, 2003-07-19 at 21:30, Stuart Bishop wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> >
> > On Sunday, July 20, 2003, at 11:09 AM, Stuart Bishop wrote:
> >
> > > lookupd go through the roof). I have no idea if this is due
>to a bug
> > > in the Python sockets module, a bug in the
>max_server_sockets code, or
> > > just the way it is supposed to work.
> >
> > > This method is not called on the 2.6 branch.
> >
> > Actually, the same code *is* being called in the 2.6 branch.
>It
> > looks like the problem is changes in Python's socket code
>between
> > 2.1 and 2.2.
> >
> > Python 2.1.3 (#1, Apr 18 2003, 07:04:50)
> > [GCC 3.1 20020420 (prerelease)] on darwin6
> > Type "copyright", "credits" or "license" for more
>information.
> > >>> import time, max_sockets
> > >>> time.ctime(); max_sockets.max_server_sockets();
>time.ctime()
> > 'Sun Jul 20 11:24:13 2003'
> > 253
> > 'Sun Jul 20 11:24:13 2003'
> > >>>
> >
> > Python 2.2.3 (#2, Jul 8 2003, 00:07:27)
> > [GCC 3.1 20020420 (prerelease)] on darwin
> > Type "help", "copyright", "credits" or "license" for more
>information.
> > >>> import time, max_sockets
> > >>> time.ctime(); max_sockets.max_server_sockets();
>time.ctime()
> > 'Sun Jul 20 11:22:52 2003'
> > 253
> > 'Sun Jul 20 11:23:16 2003'
> > >>>
> >
> > I'll stick a bug report in the Python tracker, although if
>this is
> > actually a Python bug I doubt it will get fixed for Python2.3
>and
> > we won't be seeing another 2.2 release for some time, if
>ever.
> > So I'd still like to get this resolved in the Zope HEAD.
> >
> > - --
> > Stuart Bishop <zen@shangri-la.dropbear.id.au>
> > http://shangri-la.dropbear.id.au/
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.1 (Darwin)
> >
> >
>iD8DBQE/GfCmh8iUz1x5geARAhNkAJ4uULhOJAVDE/xFR0xWm93JiHodPgCeIoQk
> > 4sPAyYpZywL5Ba94qZZqBqE=
> > =0UA4
> > -----END PGP SIGNATURE-----
> >
>
>
>
>
>
>--__--__--
>
>Message: 6
>To: Stuart Bishop <stuart.b@commonground.com.au>
>cc: zope-coders@zope.org, Chris McDonough <chrism@zope.com>
> From: Anthony Baxter <anthony@interlink.com.au>
>Reply-to: Anthony Baxter <anthony@interlink.com.au>
>Subject: Re: [Zope-Coders] Re: [Zope-Checkins] CVS:
>Zope/lib/python/ZServer - utils.py:1.1 __init__.py:1.30
>Date: Mon, 21 Jul 2003 00:02:00 +1000
>
>
> >>> Stuart Bishop wrote
> > I'll stick a bug report in the Python tracker, although if
>this is
> > actually a Python bug I doubt it will get fixed for Python2.3
>and
> > we won't be seeing another 2.2 release for some time, if
>ever.
> > So I'd still like to get this resolved in the Zope HEAD.
>
>Is it still in the current 2.3? Given that the driver for the
>2.3
>release date is for Apple to bundle Py2.3 in the next OS
>release,
>it would seem that this bug is worth checking on 2.3.
>
>
>--
>Anthony Baxter <anthony@interlink.com.au>
>It's never too late to have a happy childhood.
>
>
>
>
>--__--__--
>
>_______________________________________________
>Zope-Coders mailing list
>Zope-Coders@zope.org
>http://mail.zope.org/mailman/listinfo/zope-coders
>
>
>End of Zope-Coders Digest
___________________________________________________
Download the hottest & happening ringtones here!
OR SMS: Top tone to 7333
Click here now:
http://sms.rediff.com/cgi-bin/ringtone/ringhome.pl