Commit 58cd4451 authored by 's avatar

- added 'InitializeClass' alias to ease migration

parent 8e99ee34
......@@ -8,7 +8,11 @@ Zope Changes
Restructuring
- Moved 'ApplicationDefaultPermissiosn' from 'App.class_init' to
- Added 'InitializeClass' alias in 'App.class_init' to ease migration.
In Zope 2.12 it will be recommended to import 'InitializeClass' from
'App.class_init' instead of 'Globals'.
- Moved 'ApplicationDefaultPermissions' from 'App.class_init' to
'AccessControl.Permissions', in order to break an import cycle
in third-party code which avoids imports from 'Globals.' Left
the class importable from its old location without deprecation.
......
......@@ -79,3 +79,5 @@ def default__class_init__(self):
"Class %s.%s has a security declaration for "
"nonexistent method %r", self.__module__,
self.__name__, mname)
InitializeClass = default__class_init__ # future name
......@@ -27,11 +27,7 @@ from AccessControl.Permission import ApplicationDefaultPermissions
from App.Common import package_home, attrget, Dictionary
from App.config import getConfiguration as _getConfiguration
from Persistence import Persistent, PersistentMapping
from App.class_init import default__class_init__
# Nicer alias for class initializer.
InitializeClass = default__class_init__
from App.class_init import InitializeClass, default__class_init__
from App.special_dtml import HTML, HTMLFile, DTMLFile
from App.Dialogs import MessageDialog
from App.ImageFile import ImageFile
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment