[Zope-CMF] Re: Re: CachingPolicyManager improvements checked in to svn

Jens Vagelpohl jens at dataflake.org
Fri Sep 9 05:02:52 EDT 2005

On 8 Sep 2005, at 18:24, Geoff Davis wrote:

> On Thu, 08 Sep 2005 17:45:54 +0100, Jens Vagelpohl wrote:
>> All those tests run fine for me using your branch and a vanilla Zope
>> 2.7.6. I'd make a wild guess and say it's your setup.
> Could be.  Did you try removing the lines in  
> test_Template304Handling.py
> that clean up the profile_registry?  You'll either need Zope 2.8  
> installed
> or 2.7.x + ZopeTestCase.

I was concentrating on making sure there are no failures or blowups  
on Zope 2.7 *without* ZopeTestCase, and since that problem has been  
solved nicely I never saw any other blowups ;)  But I do see them on  
Zope 2.7.6 with a suitable version of ZopeTestCase when I comment out  
the line that clears the profile registry:

Installing CMFCore ... done (0.115s)
Installing CMFDefault ... Traceback (most recent call last):
   File "/usr/local/zope/opt/Zope-2.7.6/bin/test.py", line 918, in ?
   File "/usr/local/zope/opt/Zope-2.7.6/bin/test.py", line 908, in  
     bad = main(module_filter, test_filter, libdir)
   File "/usr/local/zope/opt/Zope-2.7.6/bin/test.py", line 698, in main
     runner(files, test_filter, debug)
   File "/usr/local/zope/opt/Zope-2.7.6/bin/test.py", line 592, in  
     s = get_suite(file, runner.result)
   File "/usr/local/zope/opt/Zope-2.7.6/bin/test.py", line 508, in  
     mod = package_import(modname)
   File "/usr/local/zope/opt/Zope-2.7.6/bin/test.py", line 482, in  
     mod = __import__(modname)
   File "/usr/local/zope/InstanceHome/Products/CMFCore/tests/ 
test_Template304Handling.py", line 44, in ?
   File "/usr/local/zope/opt/Zope-2.7.6/lib/python/Testing/ 
ZopeTestCase/ZopeLite.py", line 157, in installProduct
     get_folder_permissions(), raise_exc=1)
   File "/usr/local/zope/opt/Zope-2.7.6/lib/python/OFS/ 
Application.py", line 751, in install_product
   File "/usr/local/zope/InstanceHome/Products/CMFDefault/ 
__init__.py", line 154, in initialize
   File "/usr/local/zope/InstanceHome/Products/CMFSetup/registry.py",  
line 567, in registerProfile
     raise KeyError, 'Duplicate profile ID: %s' % profile_id
KeyError: 'Duplicate profile ID: CMFDefault:default'


More information about the Zope-CMF mailing list