[Zope-dev] Re: New zope.interface 3.4.2 release
Fred Drake wrote: On Sat, Jul 26, 2008 at 7:36 AM, Hanno Schlichting [EMAIL PROTECTED] wrote: Would someone (Jim, Philikon, Fred) be willing to do a new zope.interface release or give me access rights on PyPi to do it myself? I've added Stephan Richter and Andreas Jung to the project on PyPI, since I could remember their ids. Either they or I can add you if you provide your PyPI id (or if they remember it first). Ah sorry, I didn't provide the most obvious. My id pretty much everywhere is hannosch. But I'm perfectly happy with someone else just making the release for me ;) Hanno ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Deprecation Warning
On Tue, Jul 29, 2008 at 12:09 AM, Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 vyshakh krishnan wrote: Hi Everyone, The deprecation warning while testing Product module is /home/zope/ztrunk25/lib/python/OFS/SimpleItem.py:248: DeprecationWarning: raising a string exception is deprecated raise error_type, v, tb Is it enough to define a new sub class of Exception which accept error_type,v as arguments and just print these messages to fix this warning? First, remove the forced conversion of 'error_type' to a string. Does that make the warning go away? I have tried to remove this forced conversion and came to notice that following code is doing this conversion of error_type from class 'zExceptions.NotFound' to string /home/zope/ztrunk25/lib/python/OFS/SimpleItem.py(186) if hasattr(error_type, '__name__'): error_type=error_type.__name__ But I couldn't make proper type cast here. Can anybody help me in doing so? Many of the the warnings in other modules are found similar to this warning. Please enumerate them. Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIjhJj+gerLs4ltQ4RArauAKDDLVHNc936dYCXUI4v9Ec22/sbfQCfcMHq +N2ioO1db1R86IYZAFONNSY= =cLbS -END PGP SIGNATURE- regards vyshakh ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 5 OK
Summary of messages to the zope-tests list. Period Mon Jul 28 11:00:00 2008 UTC to Tue Jul 29 11:00:00 2008 UTC. There were 5 messages: 5 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Tests Date: Mon Jul 28 20:51:52 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009925.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Tests Date: Mon Jul 28 20:53:23 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009926.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Tests Date: Mon Jul 28 20:54:53 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009927.html Subject: OK : Zope-2.11 Python-2.4.4 : Linux From: Zope Tests Date: Mon Jul 28 20:56:23 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009928.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Tests Date: Mon Jul 28 20:57:53 EDT 2008 URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009929.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Killing deprecation warnings in Zope 3.4
In case some of you noticed my sudden interest in Zope 3.4 after a long period of silent indifference, I'm porting a large-ish app from 3.2 to 3.4. At the moment is it simpler for me to use the monolithic Zope 3.4 subversion branch with all those svn:externals. This is why I'm doing various cleanups around it. Today I was irritated by deprecation warnings and fixed them all, but haven't had the time to commit them. The commits are a bit more involved these days: - for each egg (assuming none of them have C modules): - check out from svn - apply patch - run tests - tag a release - update setup.py (twice) - upload to pypi - update the KGS version list in zope.release - upload it to downloads.zope.org - update the 3.4 tree At least we have documentation: - http://svn.zope.org/*checkout*/Sandbox/philikon/foundation/releasing-software.txt - http://svn.zope.org/*checkout*/zope.release/branches/3.4/README.txt It's time to go home for me today, so I'm posting the uncommitted diff here, for two reasons: - Tomorrow I'll see the diff and a list of actions, so I won't forget what I was doing and where exactly I stopped - Maybe someone else will take a look at the diff and update a few of the affected packages: zope.app.applicationcontrol zope.app.cache zope.app.pagetemplate zope.app.pythonpage zope.app.wsgi zope.traversing Marius Gedminas -- main(k){float i,j,r,x,y=-16;while(puts(),y++15)for(x =0;x++84;putchar( .:-;!/)|IH%*#[k15]))for(i=k=r=0; j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i11k++111;r=j);} /* Mandelbrot in ASCII. */ Index: src/zope/app/applicationcontrol/ftesting.zcml === --- src/zope/app/applicationcontrol/ftesting.zcml (revision 88973) +++ src/zope/app/applicationcontrol/ftesting.zcml (working copy) @@ -15,7 +15,7 @@ include package=zope.app.securitypolicy / securityPolicy -component=zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy / +component=zope.securitypolicy.zopepolicy.ZopeSecurityPolicy / role id=zope.Manager title=Site Manager / Index: src/zope/app/cache/browser/cacheable.py === --- src/zope/app/cache/browser/cacheable.py (revision 88973) +++ src/zope/app/cache/browser/cacheable.py (working copy) @@ -23,7 +23,7 @@ from zope.app.cache.caching import getCacheForObject, getLocationForCache from zope.app.form.utility import setUpEditWidgets -from zope.app.i18n import ZopeMessageFactory as _ +from zope.i18nmessageid import ZopeMessageFactory as _ from zope.app.cache.interfaces import ICacheable from zope.app.form.interfaces import WidgetInputError from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile Index: src/zope/app/pagetemplate/ftesting.zcml === --- src/zope/app/pagetemplate/ftesting.zcml (revision 88973) +++ src/zope/app/pagetemplate/ftesting.zcml (working copy) @@ -15,7 +15,7 @@ include package=zope.app.securitypolicy / securityPolicy -component=zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy / +component=zope.securitypolicy.zopepolicy.ZopeSecurityPolicy / role id=zope.Manager title=Site Manager / Index: src/zope/app/pythonpage/browser.py === --- src/zope/app/pythonpage/browser.py (revision 88973) +++ src/zope/app/pythonpage/browser.py (working copy) @@ -16,7 +16,7 @@ $Id$ from zope.app.form.browser.editview import EditView -from zope.app.i18n import ZopeMessageFactory as _ +from zope.i18nmessageid import ZopeMessageFactory as _ class PythonPageEval(object): Evaluate the Python Page. Index: src/zope/app/wsgi/ftesting.zcml === --- src/zope/app/wsgi/ftesting.zcml (revision 88973) +++ src/zope/app/wsgi/ftesting.zcml (working copy) @@ -13,7 +13,7 @@ include package=zope.app.securitypolicy / securityPolicy -component=zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy / +component=zope.securitypolicy.zopepolicy.ZopeSecurityPolicy / role id=zope.Manager title=Site Manager / Index: src/zope/traversing/tests/ftesting.zcml === --- src/zope/traversing/tests/ftesting.zcml (revision 88973) +++ src/zope/traversing/tests/ftesting.zcml (working copy) @@ -20,7 +20,7 @@ include package=zope.app.securitypolicy file=meta.zcml / securityPolicy -component=zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy / +component=zope.securitypolicy.zopepolicy.ZopeSecurityPolicy / role id=zope.Anonymous title=Everybody description=All users have this role implicitly / signature.asc Description: Digital signature
Re: [Zope-dev] Running the 3.4 KGS tests: 9 fail, 6 errors
On Sun, Jul 27, 2008 at 02:18:23PM +0300, Marius Gedminas wrote: I finally discovered zope.release (and by discovered I mean Stephan Richter told me about it on IRC, again, but this time I had the time to take a look). It has a script that generates a buildout of all the KGS packages so you could run the tests on all of them: svn co svn+ssh://svn.zope.org/repos/main/zope.release/branches/3.4 zope.release cd zope.release buildout bin/generate-buildout cd test buildout For some reason, the test script tries to run all the tests found in my /usr/lib/python2.5/site-packages, some of which then fail. vi bin/test remove site-packages This also happens if I use python2.4 bootstrap.py bin/buildout instead of using my system-wide easy_installed zc.builbout. I see 9 failures and 4 errors on my system (Python 2.5 on 32-bit Linux): And today I see 13 failures and 5 errors on Python 2.5 on 64-bit Linux, but only 9 failures and 3 errors on Python 2.4 on the same 64-bit Linux. * the test runner keels over at the end of the unit test run, with AttributeError: 'module' object has no attribute 'DemoLayer' This is caused by z3c.skin.pagelet 1.0.2, which has a z3c/skin/pagelet/testing.py with TestLayer = ZCMLLayer( os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'), __name__, 'DemoLayer', allow_teardown=True) The test runner should verify this during import time and complain early, instead of crashing in the middle of the run. I also don't know why this doesn't always trigger the crash. The test runner has some sort of a layer cache, that might explain it. I think I'll run the test suite again on a 64-bit Linux machine, for extra fun. And maybe do that for Python 2.4 as well. Did that. Marius Gedminas -- Always forgive your enemies. Nothing annoys them more. -- Oscar Wilde signature.asc Description: Digital signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )