[Zope-dev] SVN: Zope/trunk/lib/python/Products/Five/security.py Restore Products.Five.security.initializeClass.

Martin Aspeli optilude at gmx.net
Sun Jan 4 08:58:03 EST 2009


Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Stefan H. Holek wrote:
>> Log message for revision 94498:
>>   Restore Products.Five.security.initializeClass.
>>
>> Changed:
>>   U   Zope/trunk/lib/python/Products/Five/security.py
>>
>> -=-
>> Modified: Zope/trunk/lib/python/Products/Five/security.py
>> ===================================================================
>> --- Zope/trunk/lib/python/Products/Five/security.py	2009-01-03 23:57:24 UTC (rev 94497)
>> +++ Zope/trunk/lib/python/Products/Five/security.py	2009-01-04 07:44:36 UTC (rev 94498)
>> @@ -26,6 +26,7 @@
>>  from zope.security.management import thread_local
>>  from zope.security.simplepolicies import ParanoidSecurityPolicy
>>  
>> +from App.class_init import InitializeClass as initializeClass
>>  from AccessControl.SecurityInfo import ClassSecurityInfo
>>  from AccessControl.SecurityManagement import getSecurityManager
> 
> Does third-party code import that symbol, spelled with the lower-case
> 'i'?  If so, let's go ahead and make a 'zope.deferredimport.deprecated'
> entry, and point people to the correct location and spelling.

I have a feeling there are uses of it out there, though I can't remember 
where exactly. I dug through this code quite a few times.

Also, I think Five.security.initializeClass is meant as a convenience 
import. That's all it ever was, and it fits with other symbols in 
Five.security. It may be that we just want a deferred import, not a 
deprecated one.

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book



More information about the Zope-Dev mailing list