Commit d14c1332 authored by Tres Seaver's avatar Tres Seaver

Use 'InitializeClass' alias for 'default__class_init__'.

parent 3dda5f34
...@@ -21,7 +21,7 @@ from Acquisition import aq_get ...@@ -21,7 +21,7 @@ from Acquisition import aq_get
from Acquisition import aq_inner from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from ExtensionClass import Base from ExtensionClass import Base
from zope.interface import implements from zope.interface import implements
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
$Id$ $Id$
""" """
import string, Products, Globals import string
from Acquisition import aq_base from Acquisition import aq_base
...@@ -122,6 +122,7 @@ def registerPermissions(permissions, defaultDefault=('Manager',)): ...@@ -122,6 +122,7 @@ def registerPermissions(permissions, defaultDefault=('Manager',)):
"""Register an __ac_permissions__ sequence. """Register an __ac_permissions__ sequence.
""" """
from App.class_init import ApplicationDefaultPermissions from App.class_init import ApplicationDefaultPermissions
import Products
for setting in permissions: for setting in permissions:
if _registerdPermission(setting[0]): continue if _registerdPermission(setting[0]): continue
if len(setting)==2: if len(setting)==2:
......
...@@ -22,7 +22,7 @@ $Id$ ...@@ -22,7 +22,7 @@ $Id$
from cgi import escape from cgi import escape
from Acquisition import ImplicitAcquisitionWrapper from Acquisition import ImplicitAcquisitionWrapper
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from ExtensionClass import Base from ExtensionClass import Base
from zope.interface import implements from zope.interface import implements
......
...@@ -23,7 +23,7 @@ from Acquisition import Implicit ...@@ -23,7 +23,7 @@ from Acquisition import Implicit
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.Permissions import change_permissions from AccessControl.Permissions import change_permissions
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from ExtensionClass import Base from ExtensionClass import Base
......
...@@ -311,5 +311,5 @@ def allow_class(Class): ...@@ -311,5 +311,5 @@ def allow_class(Class):
sec.declareObjectPublic() sec.declareObjectPublic()
sec.setDefaultAccess(1) sec.setDefaultAccess(1)
sec.apply(Class) sec.apply(Class)
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
InitializeClass(Class) InitializeClass(Class)
...@@ -24,7 +24,7 @@ from Acquisition import aq_base ...@@ -24,7 +24,7 @@ from Acquisition import aq_base
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition import aq_inContextOf from Acquisition import aq_inContextOf
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Management import Navigation from App.Management import Navigation
from App.Management import Tabs from App.Management import Tabs
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
......
...@@ -23,7 +23,7 @@ from AccessControl.User import nobody ...@@ -23,7 +23,7 @@ from AccessControl.User import nobody
from AccessControl.securitySuite import SecurityBase from AccessControl.securitySuite import SecurityBase
from OFS.Folder import Folder from OFS.Folder import Folder
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
# let's define some permissions first # let's define some permissions first
......
...@@ -25,7 +25,7 @@ import Zope2 ...@@ -25,7 +25,7 @@ import Zope2
Zope2.startup() Zope2.startup()
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager from AccessControl.SecurityManagement import noSecurityManager
......
...@@ -21,7 +21,7 @@ import ZODB ...@@ -21,7 +21,7 @@ import ZODB
import transaction import transaction
from Acquisition import Implicit from Acquisition import Implicit
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from OFS.ObjectManager import ObjectManager from OFS.ObjectManager import ObjectManager
from OFS.Folder import Folder from OFS.Folder import Folder
......
...@@ -28,7 +28,7 @@ class ClassSecurityInfoTests(unittest.TestCase): ...@@ -28,7 +28,7 @@ class ClassSecurityInfoTests(unittest.TestCase):
# Test setting default roles for permissions. # Test setting default roles for permissions.
from App.class_init import default__class_init__ from App.class_init import InitializeClass
from ExtensionClass import Base from ExtensionClass import Base
ClassSecurityInfo = self._getTargetClass() ClassSecurityInfo = self._getTargetClass()
...@@ -56,7 +56,7 @@ class ClassSecurityInfoTests(unittest.TestCase): ...@@ -56,7 +56,7 @@ class ClassSecurityInfoTests(unittest.TestCase):
pass pass
# Do class initialization. # Do class initialization.
default__class_init__(Test) InitializeClass(Test)
# Now check the resulting class to see if the mapping was made # Now check the resulting class to see if the mapping was made
# correctly. Note that this uses carnal knowledge of the internal # correctly. Note that this uses carnal knowledge of the internal
......
...@@ -585,7 +585,7 @@ class TestActualPython(GuardTestCase): ...@@ -585,7 +585,7 @@ class TestActualPython(GuardTestCase):
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from ExtensionClass import Base from ExtensionClass import Base
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
global _ProtectedBase global _ProtectedBase
if _ProtectedBase is None: if _ProtectedBase is None:
......
...@@ -25,7 +25,7 @@ from AccessControl.requestmethod import requestmethod ...@@ -25,7 +25,7 @@ from AccessControl.requestmethod import requestmethod
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from Acquisition import Implicit from Acquisition import Implicit
from App.CacheManager import CacheManager from App.CacheManager import CacheManager
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.config import getConfiguration from App.config import getConfiguration
from App.DavLockManager import DavLockManager from App.DavLockManager import DavLockManager
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
......
...@@ -19,7 +19,7 @@ __version__='$Revision: 1.31 $'[11:-2] ...@@ -19,7 +19,7 @@ __version__='$Revision: 1.31 $'[11:-2]
import time import time
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.ImageFile import ImageFile from App.ImageFile import ImageFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
......
...@@ -17,7 +17,7 @@ from AccessControl.SecurityInfo import ClassSecurityInfo ...@@ -17,7 +17,7 @@ from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from OFS.SimpleItem import Item from OFS.SimpleItem import Item
from webdav.Lockable import wl_isLocked from webdav.Lockable import wl_isLocked
......
...@@ -21,7 +21,7 @@ from AccessControl.Role import RoleManager ...@@ -21,7 +21,7 @@ from AccessControl.Role import RoleManager
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Acquired from Acquisition import Acquired
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from Persistence import Persistent from Persistence import Persistent
from OFS.SimpleItem import Item from OFS.SimpleItem import Item
......
...@@ -22,7 +22,7 @@ from AccessControl.Owned import UnownableOwner ...@@ -22,7 +22,7 @@ from AccessControl.Owned import UnownableOwner
from Acquisition import Acquired from Acquisition import Acquired
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
def _product_packages(): def _product_packages():
"""Returns all product packages including the regularly defined """Returns all product packages including the regularly defined
......
...@@ -20,7 +20,7 @@ import time ...@@ -20,7 +20,7 @@ import time
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Explicit from Acquisition import Explicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Common import package_home from App.Common import package_home
from App.Common import rfc1123_date from App.Common import rfc1123_date
from App.config import getConfiguration from App.config import getConfiguration
......
...@@ -23,15 +23,15 @@ from zope.interface import implements ...@@ -23,15 +23,15 @@ from zope.interface import implements
from AccessControl import getSecurityManager, Unauthorized from AccessControl import getSecurityManager, Unauthorized
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from AccessControl.Permissions import view_management_screens from AccessControl.Permissions import view_management_screens
import ExtensionClass from App.class_init import InitializeClass
from zExceptions import Redirect
from App.class_init import default__class_init__ as InitializeClass
from App.interfaces import INavigation from App.interfaces import INavigation
from App.special_dtml import HTMLFile from App.special_dtml import HTMLFile
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from ExtensionClass import Base
from zExceptions import Redirect
class Tabs(ExtensionClass.Base): class Tabs(Base):
"""Mix-in provides management folder tab support.""" """Mix-in provides management folder tab support."""
security = ClassSecurityInfo() security = ClassSecurityInfo()
...@@ -161,7 +161,7 @@ class Tabs(ExtensionClass.Base): ...@@ -161,7 +161,7 @@ class Tabs(ExtensionClass.Base):
InitializeClass(Tabs) InitializeClass(Tabs)
class Navigation(ExtensionClass.Base): class Navigation(Base):
"""Basic navigation UI support""" """Basic navigation UI support"""
implements(INavigation) implements(INavigation)
......
...@@ -20,7 +20,7 @@ from AccessControl.Permissions import define_permissions ...@@ -20,7 +20,7 @@ from AccessControl.Permissions import define_permissions
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from ExtensionClass import Base from ExtensionClass import Base
from OFS.SimpleItem import Item from OFS.SimpleItem import Item
......
...@@ -48,7 +48,7 @@ from AccessControl.Owned import UnownableOwner ...@@ -48,7 +48,7 @@ from AccessControl.Owned import UnownableOwner
from AccessControl.Permissions import manage_zclasses from AccessControl.Permissions import manage_zclasses
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.unauthorized import Unauthorized from AccessControl.unauthorized import Unauthorized
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from OFS.Folder import Folder from OFS.Folder import Folder
......
...@@ -21,17 +21,15 @@ from Acquisition import aq_parent ...@@ -21,17 +21,15 @@ from Acquisition import aq_parent
from AccessControl import getSecurityManager from AccessControl import getSecurityManager
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from AccessControl.Permissions import undo_changes from AccessControl.Permissions import undo_changes
from App.class_init import InitializeClass
from App.interfaces import IUndoSupport
from App.special_dtml import DTMLFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
import ExtensionClass import ExtensionClass
import transaction import transaction
from ZopeUndo.Prefix import Prefix from ZopeUndo.Prefix import Prefix
from zope.interface import implements from zope.interface import implements
from App.class_init import default__class_init__ as InitializeClass
from App.interfaces import IUndoSupport
from App.special_dtml import DTMLFile
class UndoSupport(ExtensionClass.Base): class UndoSupport(ExtensionClass.Base):
implements(IUndoSupport) implements(IUndoSupport)
......
...@@ -21,7 +21,7 @@ def test_InitializeClass(): ...@@ -21,7 +21,7 @@ def test_InitializeClass():
Check when the class has an ExtensionClass as attribute. Check when the class has an ExtensionClass as attribute.
>>> import ExtensionClass >>> import ExtensionClass
>>> from App.class_init import default__class_init__ as InitializeClass >>> from App.class_init import InitializeClass
>>> class AnotherClass(ExtensionClass.Base): >>> class AnotherClass(ExtensionClass.Base):
... _need__name__ = 1 ... _need__name__ = 1
......
...@@ -18,7 +18,7 @@ $Id$ ...@@ -18,7 +18,7 @@ $Id$
import types import types
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from Persistence import Persistent from Persistence import Persistent
......
...@@ -17,7 +17,7 @@ from AccessControl.Permissions import add_documents_images_and_files ...@@ -17,7 +17,7 @@ from AccessControl.Permissions import add_documents_images_and_files
from AccessControl.Permissions import view as View from AccessControl.Permissions import view as View
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.special_dtml import HTML from App.special_dtml import HTML
from OFS.ObjectManager import ObjectManager from OFS.ObjectManager import ObjectManager
......
...@@ -16,7 +16,7 @@ from AccessControl.Permissions import access_contents_information ...@@ -16,7 +16,7 @@ from AccessControl.Permissions import access_contents_information
from AccessControl.Permissions import view as View from AccessControl.Permissions import view as View
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.ImageFile import ImageFile from App.ImageFile import ImageFile
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.special_dtml import HTML from App.special_dtml import HTML
......
...@@ -18,7 +18,7 @@ import sys ...@@ -18,7 +18,7 @@ import sys
from urllib import quote from urllib import quote
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from HelpSys.HelpUtil import classobject from HelpSys.HelpUtil import classobject
from HelpSys.HelpUtil import HelpBase from HelpSys.HelpUtil import HelpBase
......
...@@ -29,7 +29,7 @@ from AccessControl import ClassSecurityInfo ...@@ -29,7 +29,7 @@ from AccessControl import ClassSecurityInfo
from AccessControl.User import UserFolder from AccessControl.User import UserFolder
from Acquisition import aq_base from Acquisition import aq_base
from App.ApplicationManager import ApplicationManager from App.ApplicationManager import ApplicationManager
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.class_init import ApplicationDefaultPermissions from App.class_init import ApplicationDefaultPermissions
from App.config import getConfiguration from App.config import getConfiguration
from App.Product import doInstall from App.Product import doInstall
......
...@@ -28,7 +28,7 @@ from Acquisition import aq_base ...@@ -28,7 +28,7 @@ from Acquisition import aq_base
from Acquisition import aq_get from Acquisition import aq_get
from Acquisition import aq_inner from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
ZCM_MANAGERS = '__ZCacheManager_ids__' ZCM_MANAGERS = '__ZCacheManager_ids__'
......
...@@ -36,7 +36,7 @@ from AccessControl.Permissions import delete_objects ...@@ -36,7 +36,7 @@ from AccessControl.Permissions import delete_objects
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import aq_inner from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import HTML from App.special_dtml import HTML
from App.special_dtml import HTMLFile from App.special_dtml import HTMLFile
......
...@@ -20,7 +20,7 @@ from urllib import quote ...@@ -20,7 +20,7 @@ from urllib import quote
from AccessControl import getSecurityManager from AccessControl import getSecurityManager
from AccessControl.Permissions import change_dtml_methods from AccessControl.Permissions import change_dtml_methods
from AccessControl.Permissions import change_dtml_documents from AccessControl.Permissions import change_dtml_documents
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.special_dtml import HTML from App.special_dtml import HTML
......
...@@ -20,7 +20,7 @@ from urllib import quote ...@@ -20,7 +20,7 @@ from urllib import quote
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.special_dtml import HTML from App.special_dtml import HTML
......
...@@ -23,7 +23,7 @@ from AccessControl.Permission import name_trans ...@@ -23,7 +23,7 @@ from AccessControl.Permission import name_trans
from AccessControl.Permissions import view_management_screens from AccessControl.Permissions import view_management_screens
from Acquisition import aq_base from Acquisition import aq_base
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
from DocumentTemplate.DT_Util import Eval from DocumentTemplate.DT_Util import Eval
from DocumentTemplate.DT_Util import InstanceDict from DocumentTemplate.DT_Util import InstanceDict
......
...@@ -22,7 +22,7 @@ from AccessControl.Permissions import add_user_folders ...@@ -22,7 +22,7 @@ from AccessControl.Permissions import add_user_folders
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.unauthorized import Unauthorized from AccessControl.unauthorized import Unauthorized
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from webdav.Collection import Collection from webdav.Collection import Collection
from zope.interface import implements from zope.interface import implements
......
...@@ -22,7 +22,7 @@ from AccessControl.Permissions import view_history ...@@ -22,7 +22,7 @@ from AccessControl.Permissions import view_history
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
from ExtensionClass import Base from ExtensionClass import Base
......
...@@ -27,7 +27,7 @@ from AccessControl.Permissions import delete_objects ...@@ -27,7 +27,7 @@ from AccessControl.Permissions import delete_objects
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
from Persistence import Persistent from Persistence import Persistent
......
...@@ -35,7 +35,7 @@ from AccessControl import getSecurityManager ...@@ -35,7 +35,7 @@ from AccessControl import getSecurityManager
from AccessControl.ZopeSecurityPolicy import getRoles from AccessControl.ZopeSecurityPolicy import getRoles
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Common import is_acquired from App.Common import is_acquired
from App.config import getConfiguration from App.config import getConfiguration
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
......
...@@ -21,7 +21,7 @@ from AccessControl.Permissions import access_contents_information ...@@ -21,7 +21,7 @@ from AccessControl.Permissions import access_contents_information
from AccessControl.Permissions import manage_properties from AccessControl.Permissions import manage_properties
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_base from Acquisition import aq_base
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from DocumentTemplate.sequence import sort from DocumentTemplate.sequence import sort
from zope.interface import implements from zope.interface import implements
from zope.app.container.contained import notifyContainerModified from zope.app.container.contained import notifyContainerModified
......
...@@ -21,7 +21,7 @@ from AccessControl.Permissions import access_contents_information ...@@ -21,7 +21,7 @@ from AccessControl.Permissions import access_contents_information
from AccessControl.Permissions import manage_properties from AccessControl.Permissions import manage_properties
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_base from Acquisition import aq_base
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from ExtensionClass import Base from ExtensionClass import Base
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
......
...@@ -26,7 +26,7 @@ from AccessControl.SecurityManagement import getSecurityManager ...@@ -26,7 +26,7 @@ from AccessControl.SecurityManagement import getSecurityManager
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition import Implicit, Explicit from Acquisition import Implicit, Explicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Common import iso8601_date from App.Common import iso8601_date
from App.Common import rfc1123_date from App.Common import rfc1123_date
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
......
...@@ -41,7 +41,7 @@ from Acquisition import aq_inner ...@@ -41,7 +41,7 @@ from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition import Implicit from Acquisition import Implicit
from App.Management import Tabs from App.Management import Tabs
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import HTML from App.special_dtml import HTML
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.Undo import UndoSupport from App.Undo import UndoSupport
......
...@@ -27,7 +27,7 @@ from Acquisition import aq_base ...@@ -27,7 +27,7 @@ from Acquisition import aq_base
from Acquisition import aq_inner from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition.interfaces import IAcquirer from Acquisition.interfaces import IAcquirer
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from OFS.interfaces import ITraversable from OFS.interfaces import ITraversable
from zExceptions import NotFound from zExceptions import NotFound
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
......
...@@ -21,7 +21,7 @@ from Acquisition import Explicit ...@@ -21,7 +21,7 @@ from Acquisition import Explicit
from Acquisition import Implicit from Acquisition import Implicit
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import aq_parent from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
# Node type codes # Node type codes
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.ImageFile import ImageFile from App.ImageFile import ImageFile
class misc_: class misc_:
......
...@@ -27,7 +27,7 @@ from AccessControl.SecurityManagement import getSecurityManager ...@@ -27,7 +27,7 @@ from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.Permissions import access_contents_information from AccessControl.Permissions import access_contents_information
from AccessControl.Permissions import view_management_screens from AccessControl.Permissions import view_management_screens
from Acquisition import aq_base from Acquisition import aq_base
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from BTrees.Length import Length from BTrees.Length import Length
from BTrees.OIBTree import OIBTree from BTrees.OIBTree import OIBTree
......
...@@ -29,7 +29,7 @@ from AccessControl.Role import RoleManager ...@@ -29,7 +29,7 @@ from AccessControl.Role import RoleManager
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Acquired from Acquisition import Acquired
from Acquisition import Explicit from Acquisition import Explicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.Extensions import getObject from App.Extensions import getObject
from App.Extensions import getPath from App.Extensions import getPath
......
...@@ -47,7 +47,7 @@ from Products.Five.security import protectClass ...@@ -47,7 +47,7 @@ from Products.Five.security import protectClass
from Products.Five.security import protectName from Products.Five.security import protectName
from Products.Five.security import CheckerPrivateId from Products.Five.security import CheckerPrivateId
from App.class_init import default__class_init__ as initializeClass from App.class_init import InitializeClass
def page(_context, name, permission, for_, def page(_context, name, permission, for_,
layer=IDefaultBrowserLayer, template=None, class_=None, layer=IDefaultBrowserLayer, template=None, class_=None,
...@@ -158,7 +158,7 @@ def page(_context, name, permission, for_, ...@@ -158,7 +158,7 @@ def page(_context, name, permission, for_,
# Protect the class # Protect the class
_context.action( _context.action(
discriminator = ('five:initialize:class', new_class), discriminator = ('five:initialize:class', new_class),
callable = initializeClass, callable = InitializeClass,
args = (new_class,) args = (new_class,)
) )
...@@ -320,7 +320,7 @@ def resource(_context, name, layer=IDefaultBrowserLayer, permission='zope.Public ...@@ -320,7 +320,7 @@ def resource(_context, name, layer=IDefaultBrowserLayer, permission='zope.Public
) )
_context.action( _context.action(
discriminator = ('five:initialize:class', new_class), discriminator = ('five:initialize:class', new_class),
callable = initializeClass, callable = InitializeClass,
args = (new_class,) args = (new_class,)
) )
...@@ -388,7 +388,7 @@ def resourceDirectory(_context, name, directory, layer=IDefaultBrowserLayer, ...@@ -388,7 +388,7 @@ def resourceDirectory(_context, name, directory, layer=IDefaultBrowserLayer,
) )
_context.action( _context.action(
discriminator = ('five:initialize:class', new_class), discriminator = ('five:initialize:class', new_class),
callable = initializeClass, callable = InitializeClass,
args = (new_class,) args = (new_class,)
) )
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
$Id$ $Id$
""" """
from App.class_init import default__class_init__ as initializeClass from App.class_init import InitializeClass
from ExtensionClass import Base from ExtensionClass import Base
import zope.component import zope.component
...@@ -60,7 +60,7 @@ def EditViewFactory(name, schema, label, permission, layer, ...@@ -60,7 +60,7 @@ def EditViewFactory(name, schema, label, permission, layer,
# BaseFormDirective, that means that zope.Public has been # BaseFormDirective, that means that zope.Public has been
# translated to the CheckerPublic object # translated to the CheckerPublic object
protectClass(class_, permission) protectClass(class_, permission)
initializeClass(class_) InitializeClass(class_)
class FiveFormDirective(BaseFormDirective): class FiveFormDirective(BaseFormDirective):
...@@ -123,7 +123,7 @@ def AddViewFactory(name, schema, label, permission, layer, ...@@ -123,7 +123,7 @@ def AddViewFactory(name, schema, label, permission, layer,
# BaseFormDirective, that means that zope.Public has been # BaseFormDirective, that means that zope.Public has been
# translated to the CheckerPublic object # translated to the CheckerPublic object
protectClass(class_, permission) protectClass(class_, permission)
initializeClass(class_) InitializeClass(class_)
class AddFormDirective(FiveFormDirective): class AddFormDirective(FiveFormDirective):
......
...@@ -20,8 +20,8 @@ the widget's sub-editform. ...@@ -20,8 +20,8 @@ the widget's sub-editform.
$Id$ $Id$
""" """
from AccessControl import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from zope.app.form.browser.objectwidget import ObjectWidget as OWBase from zope.app.form.browser.objectwidget import ObjectWidget as OWBase
from zope.app.form.browser.objectwidget import ObjectWidgetView as OWVBase from zope.app.form.browser.objectwidget import ObjectWidgetView as OWVBase
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
$Id$ $Id$
""" """
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from Products.Five.form.objectwidget import ObjectWidget from Products.Five.form.objectwidget import ObjectWidget
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
$Id$ $Id$
""" """
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from zope.i18nmessageid import MessageFactory from zope.i18nmessageid import MessageFactory
......
...@@ -18,7 +18,8 @@ $Id$ ...@@ -18,7 +18,8 @@ $Id$
import warnings import warnings
from zope.configuration.exceptions import ConfigurationError from zope.configuration.exceptions import ConfigurationError
from zope.app.component import contentdirective from zope.app.component import contentdirective
from Products.Five.security import protectName, initializeClass from App.class_init import InitializeClass
from Products.Five.security import protectName
class ClassDirective(contentdirective.ClassDirective): class ClassDirective(contentdirective.ClassDirective):
...@@ -41,6 +42,6 @@ class ClassDirective(contentdirective.ClassDirective): ...@@ -41,6 +42,6 @@ class ClassDirective(contentdirective.ClassDirective):
def __call__(self): def __call__(self):
return self.__context.action( return self.__context.action(
discriminator = None, discriminator = None,
callable = initializeClass, callable = InitializeClass,
args = (self.__class,) args = (self.__class,)
) )
...@@ -15,19 +15,22 @@ ...@@ -15,19 +15,22 @@
$Id$ $Id$
""" """
from zope.component import queryUtility, getUtility from zope.component import getUtility
from zope.interface import implements, classProvides from zope.component import queryUtility
from zope.security.interfaces import IInteraction, ISecurityPolicy from zope.interface import classProvides
from zope.interface import implements
from zope.security.checker import CheckerPublic
from zope.security.interfaces import IInteraction
from zope.security.interfaces import ISecurityPolicy
from zope.security.interfaces import IPermission from zope.security.interfaces import IPermission
from zope.security.management import thread_local from zope.security.management import thread_local
from zope.security.simplepolicies import ParanoidSecurityPolicy from zope.security.simplepolicies import ParanoidSecurityPolicy
from AccessControl import ClassSecurityInfo, getSecurityManager from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as initializeClass from AccessControl.SecurityManagement import getSecurityManager
CheckerPublicId = 'zope.Public' CheckerPublicId = 'zope.Public'
CheckerPrivateId = 'zope2.Private' CheckerPrivateId = 'zope2.Private'
from zope.security.checker import CheckerPublic
def getSecurityInfo(klass): def getSecurityInfo(klass):
sec = {} sec = {}
......
...@@ -16,8 +16,9 @@ ...@@ -16,8 +16,9 @@
$Id$ $Id$
""" """
from zope.interface import Interface, implements from zope.interface import implements
from AccessControl import ClassSecurityInfo from zope.interface import Interface
from AccessControl.SecurityInfo import ClassSecurityInfo
class ISuperDummy(Interface): class ISuperDummy(Interface):
""" """
...@@ -95,7 +96,7 @@ def test_security_equivalence(): ...@@ -95,7 +96,7 @@ def test_security_equivalence():
... ''' ... '''
>>> zcml.load_string(configure_zcml) >>> zcml.load_string(configure_zcml)
>>> from App.class_init import default__class_init__ as InitializeClass >>> from App.class_init import InitializeClass
>>> InitializeClass(Dummy2) >>> InitializeClass(Dummy2)
Now we compare their access controls: Now we compare their access controls:
......
...@@ -17,7 +17,7 @@ $Id$ ...@@ -17,7 +17,7 @@ $Id$
""" """
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Explicit from Acquisition import Explicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from zope.interface import implements from zope.interface import implements
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
$Id$ $Id$
""" """
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from zope.interface import implements from zope.interface import implements
......
...@@ -27,7 +27,7 @@ from zope.publisher.interfaces.browser import IBrowserView ...@@ -27,7 +27,7 @@ from zope.publisher.interfaces.browser import IBrowserView
from zope.publisher.interfaces.browser import IDefaultBrowserLayer from zope.publisher.interfaces.browser import IDefaultBrowserLayer
from zope.viewlet import interfaces from zope.viewlet import interfaces
from App.class_init import default__class_init__ as initializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from Products.Five.security import protectClass from Products.Five.security import protectClass
from Products.Five.security import protectName from Products.Five.security import protectName
...@@ -91,7 +91,7 @@ def viewletManagerDirective( ...@@ -91,7 +91,7 @@ def viewletManagerDirective(
) )
_context.action( _context.action(
discriminator = ('five:initialize:class', new_class), discriminator = ('five:initialize:class', new_class),
callable = initializeClass, callable = InitializeClass,
args = (new_class,) args = (new_class,)
) )
...@@ -191,6 +191,6 @@ def viewletDirective( ...@@ -191,6 +191,6 @@ def viewletDirective(
) )
_context.action( _context.action(
discriminator = ('five:initialize:class', new_class), discriminator = ('five:initialize:class', new_class),
callable = initializeClass, callable = InitializeClass,
args = (new_class,) args = (new_class,)
) )
...@@ -26,7 +26,7 @@ from AccessControl.Permissions import change_configuration, view ...@@ -26,7 +26,7 @@ from AccessControl.Permissions import change_configuration, view
from AccessControl.Permissions import use_mailhost_services from AccessControl.Permissions import use_mailhost_services
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
from Persistence import Persistent from Persistence import Persistent
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.User import UserFolder from AccessControl.User import UserFolder
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import HTMLFile from App.special_dtml import HTMLFile
from Acquisition import Implicit from Acquisition import Implicit
from OFS.SimpleItem import Item from OFS.SimpleItem import Item
......
...@@ -24,7 +24,7 @@ from AccessControl.Permissions import view_management_screens ...@@ -24,7 +24,7 @@ from AccessControl.Permissions import view_management_screens
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.special_dtml import HTML from App.special_dtml import HTML
......
...@@ -16,7 +16,7 @@ from logging import getLogger ...@@ -16,7 +16,7 @@ from logging import getLogger
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Common import package_home from App.Common import package_home
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.config import getConfiguration from App.config import getConfiguration
...@@ -57,7 +57,7 @@ class PageTemplateFile(SimpleItem, Script, PageTemplate, Traversable): ...@@ -57,7 +57,7 @@ class PageTemplateFile(SimpleItem, Script, PageTemplate, Traversable):
func_code = FuncCode((), 0) func_code = FuncCode((), 0)
_v_last_read = 0 _v_last_read = 0
# needed by App.class_init.default__class_init__ # needed by App.class_init.InitializeClass
_need__name__ = 1 _need__name__ = 1
_default_bindings = {'name_subpath': 'traverse_subpath'} _default_bindings = {'name_subpath': 'traverse_subpath'}
......
...@@ -27,7 +27,7 @@ from AccessControl.ZopeGuards import safe_builtins ...@@ -27,7 +27,7 @@ from AccessControl.ZopeGuards import safe_builtins
from Acquisition import Acquired from Acquisition import Acquired
from Acquisition import Explicit from Acquisition import Explicit
from Acquisition import aq_get from Acquisition import aq_get
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Common import package_home from App.Common import package_home
from App.ImageFile import ImageFile from App.ImageFile import ImageFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
......
...@@ -18,7 +18,7 @@ $Id$ ...@@ -18,7 +18,7 @@ $Id$
import os import os
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Common import package_home from App.Common import package_home
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from BTrees.IIBTree import IISet from BTrees.IIBTree import IISet
......
...@@ -20,7 +20,7 @@ from AccessControl.Permissions import query_vocabulary ...@@ -20,7 +20,7 @@ from AccessControl.Permissions import query_vocabulary
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from Persistence import Persistent from Persistence import Persistent
......
...@@ -33,7 +33,7 @@ from AccessControl.SecurityManagement import getSecurityManager ...@@ -33,7 +33,7 @@ from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.ZopeGuards import get_safe_globals, guarded_getattr from AccessControl.ZopeGuards import get_safe_globals, guarded_getattr
from AccessControl.ZopeGuards import get_safe_globals, guarded_getattr from AccessControl.ZopeGuards import get_safe_globals, guarded_getattr
from Acquisition import aq_parent from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Common import package_home from App.Common import package_home
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
......
...@@ -31,7 +31,7 @@ from Acquisition import Implicit ...@@ -31,7 +31,7 @@ from Acquisition import Implicit
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition import aq_inner from Acquisition import aq_inner
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.Management import Tabs from App.Management import Tabs
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
......
...@@ -22,7 +22,7 @@ from AccessControl.SecurityInfo import ClassSecurityInfo ...@@ -22,7 +22,7 @@ from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from Acquisition import Explicit from Acquisition import Explicit
from Acquisition import aq_base from Acquisition import aq_base
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from App.Management import Tabs from App.Management import Tabs
from OFS.SimpleItem import Item from OFS.SimpleItem import Item
......
...@@ -9,7 +9,7 @@ from AccessControl.SecurityInfo import ClassSecurityInfo ...@@ -9,7 +9,7 @@ from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_inner from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from OFS.SimpleItem import Item from OFS.SimpleItem import Item
......
...@@ -27,7 +27,7 @@ from AccessControl.SecurityInfo import ClassSecurityInfo ...@@ -27,7 +27,7 @@ from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.unauthorized import Unauthorized from AccessControl.unauthorized import Unauthorized
from Acquisition import aq_base from Acquisition import aq_base
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from Products.PageTemplates.PageTemplateFile import PageTemplateFile from Products.PageTemplates.PageTemplateFile import PageTemplateFile
......
...@@ -28,7 +28,7 @@ import urlparse ...@@ -28,7 +28,7 @@ import urlparse
from AccessControl.Permissions import view_management_screens from AccessControl.Permissions import view_management_screens
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.Common import rfc1123_date from App.Common import rfc1123_date
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from OFS.Cache import Cache from OFS.Cache import Cache
from OFS.Cache import CacheManager from OFS.Cache import CacheManager
......
...@@ -22,7 +22,7 @@ import time ...@@ -22,7 +22,7 @@ import time
from AccessControl.Permissions import view_management_screens from AccessControl.Permissions import view_management_screens
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from OFS.Cache import Cache from OFS.Cache import Cache
from OFS.Cache import CacheManager from OFS.Cache import CacheManager
......
...@@ -29,7 +29,7 @@ from AccessControl.SecurityManagement import getSecurityManager ...@@ -29,7 +29,7 @@ from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import setSecurityManager from AccessControl.SecurityManagement import setSecurityManager
from AccessControl.SpecialUsers import nobody from AccessControl.SpecialUsers import nobody
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import HTMLFile from App.special_dtml import HTMLFile
from BTrees.Length import Length as BTreesLength from BTrees.Length import Length as BTreesLength
from BTrees.OOBTree import OOBTree from BTrees.OOBTree import OOBTree
......
...@@ -26,7 +26,7 @@ import time ...@@ -26,7 +26,7 @@ import time
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from Persistence import Persistent from Persistence import Persistent
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
from zope.interface import implements from zope.interface import implements
......
...@@ -25,7 +25,7 @@ from Acquisition import aq_base ...@@ -25,7 +25,7 @@ from Acquisition import aq_base
from Acquisition import aq_inner from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from Persistence import Persistent from Persistence import Persistent
......
...@@ -29,11 +29,12 @@ from AccessControl.Permissions import manage_zcatalog_indexes ...@@ -29,11 +29,12 @@ from AccessControl.Permissions import manage_zcatalog_indexes
from AccessControl.Permissions import search_zcatalog from AccessControl.Permissions import search_zcatalog
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
from DocumentTemplate.DT_Util import InstanceDict, TemplateDict from DocumentTemplate.DT_Util import InstanceDict
from DocumentTemplate.DT_Util import TemplateDict
from DocumentTemplate.DT_Util import Eval from DocumentTemplate.DT_Util import Eval
from OFS.Folder import Folder from OFS.Folder import Folder
from OFS.ObjectManager import ObjectManager from OFS.ObjectManager import ObjectManager
......
...@@ -18,7 +18,7 @@ $Id$ ...@@ -18,7 +18,7 @@ $Id$
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.Permissions import manage_zcatalog_indexes from AccessControl.Permissions import manage_zcatalog_indexes
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from OFS.Folder import Folder from OFS.Folder import Folder
from OFS.ObjectManager import IFAwareObjectManager from OFS.ObjectManager import IFAwareObjectManager
......
...@@ -24,7 +24,7 @@ from logging import getLogger ...@@ -24,7 +24,7 @@ from logging import getLogger
import transaction import transaction
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from Acquisition import ImplicitAcquisitionWrapper from Acquisition import ImplicitAcquisitionWrapper
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import aq_inner from Acquisition import aq_inner
......
...@@ -17,7 +17,7 @@ import sys ...@@ -17,7 +17,7 @@ import sys
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityInfo import ModuleSecurityInfo from AccessControl.SecurityInfo import ModuleSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.config import getConfiguration from App.config import getConfiguration
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
......
...@@ -18,7 +18,7 @@ __version__='$Revision: 1.21 $'[11:-2] ...@@ -18,7 +18,7 @@ __version__='$Revision: 1.21 $'[11:-2]
from AccessControl.Permissions import change_database_methods from AccessControl.Permissions import change_database_methods
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from Shared.DC.ZRDB.DA import DA from Shared.DC.ZRDB.DA import DA
......
...@@ -23,7 +23,7 @@ from AccessControl.PermissionRole import _what_not_even_god_should_do ...@@ -23,7 +23,7 @@ from AccessControl.PermissionRole import _what_not_even_god_should_do
from AccessControl.ZopeGuards import guarded_getattr from AccessControl.ZopeGuards import guarded_getattr
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition import aq_inner from Acquisition import aq_inner
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from Persistence import Persistent from Persistence import Persistent
defaultBindings = {'name_context': 'context', defaultBindings = {'name_context': 'context',
......
...@@ -15,7 +15,7 @@ __version__='$Revision$'[11:-2] ...@@ -15,7 +15,7 @@ __version__='$Revision$'[11:-2]
from AccessControl.Permissions import view_management_screens from AccessControl.Permissions import view_management_screens
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from Shared.DC.Scripts.Bindings import Bindings from Shared.DC.Scripts.Bindings import Bindings
......
...@@ -22,7 +22,7 @@ from urllib import quote ...@@ -22,7 +22,7 @@ from urllib import quote
from AccessControl.Permissions import view_management_screens from AccessControl.Permissions import view_management_screens
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from DocumentTemplate.DT_Util import TemplateDict from DocumentTemplate.DT_Util import TemplateDict
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
......
...@@ -28,7 +28,7 @@ from AccessControl.Permissions import open_close_database_connection ...@@ -28,7 +28,7 @@ from AccessControl.Permissions import open_close_database_connection
from AccessControl.Role import RoleManager from AccessControl.Role import RoleManager
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from DateTime.DateTime import DateTime from DateTime.DateTime import DateTime
......
...@@ -35,7 +35,7 @@ from AccessControl.Role import RoleManager ...@@ -35,7 +35,7 @@ from AccessControl.Role import RoleManager
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from App.Extensions import getBrain from App.Extensions import getBrain
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
......
...@@ -166,7 +166,7 @@ def installProduct(name, quiet=0): ...@@ -166,7 +166,7 @@ def installProduct(name, quiet=0):
def _installProduct(name, quiet=0): def _installProduct(name, quiet=0):
'''Installs a Zope product.''' '''Installs a Zope product.'''
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
start = time.time() start = time.time()
meta_types = [] meta_types = []
if _patched and not _installedProducts.has_key(name): if _patched and not _installedProducts.has_key(name):
......
...@@ -19,7 +19,7 @@ from AccessControl.Permissions import manage_zclasses ...@@ -19,7 +19,7 @@ from AccessControl.Permissions import manage_zclasses
from AccessControl.Permissions import manage_properties from AccessControl.Permissions import manage_properties
from AccessControl.Permissions import access_contents_information from AccessControl.Permissions import access_contents_information
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from OFS.ObjectManager import ObjectManager from OFS.ObjectManager import ObjectManager
from OFS.PropertySheets import FixedSchema from OFS.PropertySheets import FixedSchema
......
...@@ -19,7 +19,7 @@ from AccessControl.Permissions import create_class_instances ...@@ -19,7 +19,7 @@ from AccessControl.Permissions import create_class_instances
from AccessControl.Role import gather_permissions from AccessControl.Role import gather_permissions
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_base from Acquisition import aq_base
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.FactoryDispatcher import FactoryDispatcher from App.FactoryDispatcher import FactoryDispatcher
from App.ImageFile import ImageFile from App.ImageFile import ImageFile
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Zope Classes """Zope Classes
""" """
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import HTMLFile from App.special_dtml import HTMLFile
from ExtensionClass import Base from ExtensionClass import Base
......
...@@ -63,10 +63,10 @@ def stuff_Globals(): ...@@ -63,10 +63,10 @@ def stuff_Globals():
Globals.Persistent = Persistent Globals.Persistent = Persistent
Globals.PersistentMapping = PersistentMapping Globals.PersistentMapping = PersistentMapping
from App.class_init import default__class_init__ from App.class_init import InitializeClass
from App.class_init import ApplicationDefaultPermissions from App.class_init import ApplicationDefaultPermissions
Globals.InitializeClass = default__class_init__ Globals.InitializeClass = InitializeClass
Globals.ApplicationDefaultPermissions = ApplicationDefaultPermissions Globals.ApplicationDefaultPermissions = ApplicationDefaultPermissions
from App.special_dtml import HTML from App.special_dtml import HTML
......
...@@ -18,7 +18,7 @@ $Id$ ...@@ -18,7 +18,7 @@ $Id$
from urllib import unquote from urllib import unquote
from AccessControl.SecurityManagement import getSecurityManager from AccessControl.SecurityManagement import getSecurityManager
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from zExceptions import MethodNotAllowed from zExceptions import MethodNotAllowed
from zExceptions import NotFound from zExceptions import NotFound
from zope.interface import implements from zope.interface import implements
......
...@@ -17,7 +17,7 @@ $Id$ ...@@ -17,7 +17,7 @@ $Id$
from AccessControl.SecurityInfo import ClassSecurityInfo from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_base from Acquisition import aq_base
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from Persistence import PersistentMapping from Persistence import PersistentMapping
from zope.interface import implements from zope.interface import implements
......
...@@ -26,7 +26,7 @@ from AccessControl.Permissions import webdav_unlock_items ...@@ -26,7 +26,7 @@ from AccessControl.Permissions import webdav_unlock_items
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import aq_parent from Acquisition import aq_parent
from Acquisition import Implicit from Acquisition import Implicit
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from App.special_dtml import DTMLFile from App.special_dtml import DTMLFile
from Persistence import Persistent from Persistence import Persistent
from OFS.CopySupport import CopyError from OFS.CopySupport import CopyError
......
...@@ -32,7 +32,7 @@ from AccessControl.Permissions import webdav_access ...@@ -32,7 +32,7 @@ from AccessControl.Permissions import webdav_access
from Acquisition import aq_base from Acquisition import aq_base
from Acquisition import aq_inner from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from App.class_init import default__class_init__ as InitializeClass from App.class_init import InitializeClass
from ExtensionClass import Base from ExtensionClass import Base
from OFS.event import ObjectClonedEvent from OFS.event import ObjectClonedEvent
from OFS.event import ObjectWillBeMovedEvent from OFS.event import ObjectWillBeMovedEvent
......
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