[Zope-CMF] Deprecation Error in CMFCalendar's tests

Charlie Clark charlie.clark at clark-consulting.eu
Wed Jun 23 17:12:13 EDT 2010


Hi,

due to the refactoring of AccessControl we now have a few deprecation  
errors. I've fixed them in CMFCore. Or at least I think I have - I'm not  
sure if a BBB conditional import in a test is correct. But I'm stumped  
with the one caused when CMFCalendar runs its functional tests:

Running Testing.ZopeTestCase.layer.ZopeLite tests:
   Set up Testing.ZopeTestCase.layer.ZopeLite in 0.920 seconds.
   Ran 2 tests with 0 failures and 0 errors in 0.006 seconds.
Running Products.CMFCalendar.testing.FunctionalLayer tests:
   Set up Products.CMFCore.testing.FunctionalZCMLLayer in 0.004 seconds.
   Set up  
Products.CMFCalendar.testing.FunctionalLayer/Users/charlieclark/Sites/cmf-svn/CMF.buildout/trunk/src/Products.GenericSetup/Products/GenericSetup/utils.py:123:  
DeprecationWarning: UserFolder is deprecated. User folders are no longer  
part of AccessControl, please depend on Zope2 and import from  
OFS.userfolder or use the new minimal user folder classes from  
AccessControl.userfolder.
   obj = getattr( obj, part )

I don't think the error is in GenericSetup but in whatever the list of  
parts is that are being passed over to be imported. Extremely minor note -  
does GenericSetup conform to coding guidelines? There seems to be a mix of  
Java and PEP-8 styles in there.

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


More information about the Zope-CMF mailing list