[Zope-CMF] Deprecation Error in CMFCalendar's tests
Tres Seaver
tseaver at palladion.com
Wed Jun 23 18:26:34 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Charlie Clark wrote:
> 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.
PEP 8 naming conventions are definitely not important there: backward
compatibility dominates any notion of conformity, especially to the most
contentious part of that standard.
If you see 80+ column lines, or trailing whitespace, etc., feel free to
fix: please try to check those fixes in in separate commits from any
non-janitorial changes, and merge / port them to all "active" branches
at the same time.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkwiihUACgkQ+gerLs4ltQ48vACeLR5ftBHP1FOE97JpP6OZY3DA
yvkAmgNz+qWPsETbVQJHvKufcHev4+YP
=7ByV
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list