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

Charlie Clark charlie.clark at clark-consulting.eu
Sat Jun 26 14:37:42 EDT 2010

Am 26.06.2010, 20:33 Uhr, schrieb Hanno Schlichting <hanno at hannosch.eu>:

> Indeed. This will need an upgrade step and the registration needs to
> be conditional on the Zope version.

hm, one of these days I'll get round to writing an upgrade set!

> Zope 2 itself takes care of the root acl_users folder and has inline
> migration code for that. In Plone's case all user folders are custom
> classes. I also looked at PAS and LDAPUserFolder which use custom
> classes as well. So none of these need special care, it's just anyone
> using the stock UserFolder class outside the root that needs to do
> some application specific migration.

The only place I've noticed it triggering is the first time login/logout  
is called. The error is actually raise by App/ClassFactory:

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  
   return getattr(m, name)

Where m is AccessControl.User and name UserFolder

I can't find the corresponding call to that anywhere but I noticed some  
other calls to AccessControl.User such as for nobody. Actually, there seem  
to be quite a few nobodies around. Up to no good, no doubt!

Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226

More information about the Zope-CMF mailing list