Re: [Zope-CMF] Test setup problems with Zope 2.13
On Sun, Jul 11, 2010 at 8:11 PM, Charlie Clark wrote: > thanks for patiently pointing out the obvious! I blame the heat. No problem. This happens rarely enough. I just happen to take apart Zope 2 at the moment :) > Affected are: Products.BTreeFolder2, Products.ExternalMethods, > Products.MIMETools, Products.OFSP, Products.PythonScripts, > Products.ZSQLMethods, Shared.DC.ZRDB And by now it's also zLOG and Products.StandardCacheManagers, more to come. Hanno ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests
Re: [Zope-CMF] Test setup problems with Zope 2.13
Am 11.07.2010, 19:39 Uhr, schrieb Hanno Schlichting : > When you work against an SVN checkout, please make sure to always run > both SVN update and bin/buildout. Also check svn status for orphaned > directories (those with a question mark) and delete them. Hi Hanno, thanks for patiently pointing out the obvious! I blame the heat. Affected are: Products.BTreeFolder2, Products.ExternalMethods, Products.MIMETools, Products.OFSP, Products.PythonScripts, Products.ZSQLMethods, Shared.DC.ZRDB Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests
Re: [Zope-CMF] Test setup problems with Zope 2.13
Hi Charlie, On Sun, Jul 11, 2010 at 7:31 PM, Charlie Clark wrote: > 2010-07-11 19:23:38 ERROR Application Couldn't install BTreeFolder2 > Traceback (most recent call last): ... > stat_info = os.stat(path) > OSError: [Errno 2] No such file or directory: > '/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Products/BTreeFolder2/btreefolder2.gif' > > I see from the updates that Products/BTreeFolder2 has been deleted / > factored out. The question is - where's it gone to? Or what bits of my > buildout do I need to reinstall? When you work against an SVN checkout, please make sure to always run both SVN update and bin/buildout. Also check svn status for orphaned directories (those with a question mark) and delete them. Products.BTreeFolder2 doesn't live inside the Zope2/src tree anymore but is a standalone distribution. In Zope 2.13 this distribution is still a dependency of Zope2 and installed when running bin/buildout. Only in Zope 2.14 will it be a complete optional dependency. If you follow my above instructions, you should get a working buildout again. Hanno ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests
Re: [Zope-CMF] Test setup problems with Zope 2.13
Am 11.07.2010, 13:54 Uhr, schrieb Hanno Schlichting : > Hi. > Maybe you have noticed from my commits today, but we have some test > setup problems in Zope 2.13. I tried to solve those, but failed so > far. Unfortunately we don't have nightly test runs for any CMF + Zope > 2.13 combination for a while, so I'm not sure when all the problems > started. Hi Hanno, I don't think I can be much help on the testing side as I don't understand the CMFCore internals that well myself. However, as things stand it's not just the tests that are broken: 2010-07-11 19:23:38 ERROR Application Couldn't install BTreeFolder2 Traceback (most recent call last): File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/OFS/Application.py", line 691, in install_product initmethod(context) File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Products/BTreeFolder2/__init__.py", line 26, in initialize File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/App/ProductContext.py", line 224, in registerClass icon = ImageFile(icon, self.__pack.__dict__) File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/App/ImageFile.py", line 77, in __init__ stat_info = os.stat(path) OSError: [Errno 2] No such file or directory: '/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Products/BTreeFolder2/btreefolder2.gif' Traceback (most recent call last): File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/bin/runzope", line 92, in Zope2.Startup.run.run() File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Zope2/Startup/__init__.py", line 86, in prepare self.startZope() File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Zope2/Startup/__init__.py", line 259, in startZope Zope2.startup() File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Zope2/__init__.py", line 47, in startup _startup() File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Zope2/App/startup.py", line 125, in startup OFS.Application.initialize(application) File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/OFS/Application.py", line 253, in initialize initializer.initialize() File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/OFS/Application.py", line 279, in initialize self.install_products() File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/OFS/Application.py", line 506, in install_products return install_products(app) File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/OFS/Application.py", line 537, in install_products folder_permissions, raise_exc=debug_mode) File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/OFS/Application.py", line 691, in install_product initmethod(context) File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Products/BTreeFolder2/__init__.py", line 26, in initialize File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/App/ProductContext.py", line 224, in registerClass icon = ImageFile(icon, self.__pack.__dict__) File "/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/App/ImageFile.py", line 77, in __init__ stat_info = os.stat(path) OSError: [Errno 2] No such file or directory: '/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Zope2/src/Products/BTreeFolder2/btreefolder2.gif' I see from the updates that Products/BTreeFolder2 has been deleted / factored out. The question is - where's it gone to? Or what bits of my buildout do I need to reinstall? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests
[Zope-CMF] CMF Tests: 4 OK
Summary of messages to the cmf-tests list. Period Sat Jul 10 12:00:00 2010 UTC to Sun Jul 11 12:00:00 2010 UTC. There were 4 messages: 4 from CMF Tests. Tests passed OK --- Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.6 : Linux From: CMF Tests Date: Sat Jul 10 21:58:59 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-July/013269.html Subject: OK : CMF-2.1 Zope-2.11 Python-2.4.6 : Linux From: CMF Tests Date: Sat Jul 10 22:01:07 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-July/013270.html Subject: OK : CMF-2.2 Zope-2.12 Python-2.6.5 : Linux From: CMF Tests Date: Sat Jul 10 22:03:07 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-July/013271.html Subject: OK : CMF-trunk Zope-2.12 Python-2.6.5 : Linux From: CMF Tests Date: Sat Jul 10 22:05:16 EDT 2010 URL: http://mail.zope.org/pipermail/cmf-tests/2010-July/013272.html ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests
[Zope-CMF] Test setup problems with Zope 2.13
Hi. Maybe you have noticed from my commits today, but we have some test setup problems in Zope 2.13. I tried to solve those, but failed so far. Unfortunately we don't have nightly test runs for any CMF + Zope 2.13 combination for a while, so I'm not sure when all the problems started. One recent problem is due to my refactoring of Products.OFSP / OFS though. I moved the registrations of all standard OFS types from the initialize of OFSP into an initialize in OFS itself. In order for this to be picked up, I added the five:registerPackage statement, including a hint at the initialize function to OFS' configure.zcml. During normal Zope startup this works fine and the initialize is called. But we have a problem with ZopeTestCase based tests. So far it did an installProduct('OFSP') call unconditionally at module scope. As soon as someone imported it, the OFS types got registered. If the ZopeLite layer was active, the call was deferred to its layer setup time. In Zope 2.13 I removed the installProduct('OFSP') call, as it doesn't do anything anymore (apart from registering help system stuff which nobody needs in tests). But I cannot simply put an installPackage('OFS') in there as a replacement. In order for that to work, one needs to load the OFS.configure.zcml first (the five:registerPackage to be exact). Since ZopeTestCase doesn't know anything about ZCML setup so far, I don't want to introduce any such handling. Consumers of ZopeTestCase have all dealt with ZCML loading in various different ways and I expect even bigger problems when changing anything there. But this means any testcase that needs the OFS types (to show up in all_meta_types for example) will need to set up the ZCML and call installPackage itself. I tried to do this in CMFCore by adding a new layer, but cannot get it to work. There's always some side-effects in other tests. It doesn't help that installPackage internally does a transaction.commit() in 2.12 but not in 2.13. If anyone more familiar with the multitude of CMF test layers could help, that would be much appreciated. Hanno ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests
Re: [Zope-CMF] Member preferences
Am 01.07.2010, 14:42 Uhr, schrieb yuppie : > I'm not in the mood to take responsibility for that. But it would be > great if someone else wants to make sure policy changes are better > communicated. And the IRC meeting would indeed be a good place for > making coding style decisions. Just confirmation that Zope-dev policy is now to remove VCS metadata like "$Id" opportunistically from code. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-600-3657 Mobile: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests