Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
d14c1332
Commit
d14c1332
authored
Dec 29, 2008
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'InitializeClass' alias for 'default__class_init__'.
parent
3dda5f34
Changes
92
Hide whitespace changes
Inline
Side-by-side
Showing
92 changed files
with
126 additions
and
121 deletions
+126
-121
lib/python/AccessControl/Owned.py
lib/python/AccessControl/Owned.py
+1
-1
lib/python/AccessControl/Permission.py
lib/python/AccessControl/Permission.py
+2
-1
lib/python/AccessControl/PermissionMapping.py
lib/python/AccessControl/PermissionMapping.py
+1
-1
lib/python/AccessControl/Role.py
lib/python/AccessControl/Role.py
+1
-1
lib/python/AccessControl/SecurityInfo.py
lib/python/AccessControl/SecurityInfo.py
+1
-1
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+1
-1
lib/python/AccessControl/securitySuite/regressionSecurity.py
lib/python/AccessControl/securitySuite/regressionSecurity.py
+1
-1
lib/python/AccessControl/tests/testAcquisition.py
lib/python/AccessControl/tests/testAcquisition.py
+1
-1
lib/python/AccessControl/tests/testBindings.py
lib/python/AccessControl/tests/testBindings.py
+1
-1
lib/python/AccessControl/tests/testClassSecurityInfo.py
lib/python/AccessControl/tests/testClassSecurityInfo.py
+2
-2
lib/python/AccessControl/tests/testZopeGuards.py
lib/python/AccessControl/tests/testZopeGuards.py
+1
-1
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+1
-1
lib/python/App/CacheManager.py
lib/python/App/CacheManager.py
+1
-1
lib/python/App/DavLockManager.py
lib/python/App/DavLockManager.py
+1
-1
lib/python/App/Factory.py
lib/python/App/Factory.py
+1
-1
lib/python/App/FactoryDispatcher.py
lib/python/App/FactoryDispatcher.py
+1
-1
lib/python/App/ImageFile.py
lib/python/App/ImageFile.py
+1
-1
lib/python/App/Management.py
lib/python/App/Management.py
+6
-6
lib/python/App/Permission.py
lib/python/App/Permission.py
+1
-1
lib/python/App/Product.py
lib/python/App/Product.py
+1
-1
lib/python/App/Undo.py
lib/python/App/Undo.py
+3
-5
lib/python/App/tests/test_class_init.py
lib/python/App/tests/test_class_init.py
+1
-1
lib/python/HelpSys/APIHelpTopic.py
lib/python/HelpSys/APIHelpTopic.py
+1
-1
lib/python/HelpSys/HelpSys.py
lib/python/HelpSys/HelpSys.py
+1
-1
lib/python/HelpSys/HelpTopic.py
lib/python/HelpSys/HelpTopic.py
+1
-1
lib/python/HelpSys/ObjectRef.py
lib/python/HelpSys/ObjectRef.py
+1
-1
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+1
-1
lib/python/OFS/Cache.py
lib/python/OFS/Cache.py
+1
-1
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+1
-1
lib/python/OFS/DTMLDocument.py
lib/python/OFS/DTMLDocument.py
+1
-1
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+1
-1
lib/python/OFS/FindSupport.py
lib/python/OFS/FindSupport.py
+1
-1
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+1
-1
lib/python/OFS/History.py
lib/python/OFS/History.py
+1
-1
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+1
-1
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+1
-1
lib/python/OFS/OrderSupport.py
lib/python/OFS/OrderSupport.py
+1
-1
lib/python/OFS/PropertyManager.py
lib/python/OFS/PropertyManager.py
+1
-1
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+1
-1
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+1
-1
lib/python/OFS/Traversable.py
lib/python/OFS/Traversable.py
+1
-1
lib/python/OFS/ZDOM.py
lib/python/OFS/ZDOM.py
+1
-1
lib/python/OFS/misc_.py
lib/python/OFS/misc_.py
+1
-1
lib/python/Products/BTreeFolder2/BTreeFolder2.py
lib/python/Products/BTreeFolder2/BTreeFolder2.py
+1
-1
lib/python/Products/ExternalMethod/ExternalMethod.py
lib/python/Products/ExternalMethod/ExternalMethod.py
+1
-1
lib/python/Products/Five/browser/metaconfigure.py
lib/python/Products/Five/browser/metaconfigure.py
+4
-4
lib/python/Products/Five/form/metaconfigure.py
lib/python/Products/Five/form/metaconfigure.py
+3
-3
lib/python/Products/Five/form/objectwidget.py
lib/python/Products/Five/form/objectwidget.py
+2
-2
lib/python/Products/Five/form/tests/schemacontent.py
lib/python/Products/Five/form/tests/schemacontent.py
+1
-1
lib/python/Products/Five/formlib/tests/content.py
lib/python/Products/Five/formlib/tests/content.py
+1
-1
lib/python/Products/Five/metaconfigure.py
lib/python/Products/Five/metaconfigure.py
+3
-2
lib/python/Products/Five/security.py
lib/python/Products/Five/security.py
+9
-6
lib/python/Products/Five/tests/test_security.py
lib/python/Products/Five/tests/test_security.py
+4
-3
lib/python/Products/Five/tests/testing/fancycontent.py
lib/python/Products/Five/tests/testing/fancycontent.py
+1
-1
lib/python/Products/Five/tests/testing/simplecontent.py
lib/python/Products/Five/tests/testing/simplecontent.py
+1
-1
lib/python/Products/Five/viewlet/metaconfigure.py
lib/python/Products/Five/viewlet/metaconfigure.py
+3
-3
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+1
-1
lib/python/Products/OFSP/Draft.py
lib/python/Products/OFSP/Draft.py
+1
-1
lib/python/Products/OFSP/Version.py
lib/python/Products/OFSP/Version.py
+1
-1
lib/python/Products/PageTemplates/PageTemplateFile.py
lib/python/Products/PageTemplates/PageTemplateFile.py
+2
-2
lib/python/Products/PageTemplates/ZopePageTemplate.py
lib/python/Products/PageTemplates/ZopePageTemplate.py
+1
-1
lib/python/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py
...n/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py
+1
-1
lib/python/Products/PluginIndexes/TextIndex/Vocabulary.py
lib/python/Products/PluginIndexes/TextIndex/Vocabulary.py
+1
-1
lib/python/Products/PythonScripts/PythonScript.py
lib/python/Products/PythonScripts/PythonScript.py
+1
-1
lib/python/Products/Sessions/BrowserIdManager.py
lib/python/Products/Sessions/BrowserIdManager.py
+1
-1
lib/python/Products/Sessions/SessionDataManager.py
lib/python/Products/Sessions/SessionDataManager.py
+1
-1
lib/python/Products/SiteAccess/VirtualHostMonster.py
lib/python/Products/SiteAccess/VirtualHostMonster.py
+1
-1
lib/python/Products/SiteErrorLog/SiteErrorLog.py
lib/python/Products/SiteErrorLog/SiteErrorLog.py
+1
-1
lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
...ucts/StandardCacheManagers/AcceleratedHTTPCacheManager.py
+1
-1
lib/python/Products/StandardCacheManagers/RAMCacheManager.py
lib/python/Products/StandardCacheManagers/RAMCacheManager.py
+1
-1
lib/python/Products/Transience/Transience.py
lib/python/Products/Transience/Transience.py
+1
-1
lib/python/Products/Transience/TransientObject.py
lib/python/Products/Transience/TransientObject.py
+1
-1
lib/python/Products/ZCTextIndex/ZCTextIndex.py
lib/python/Products/ZCTextIndex/ZCTextIndex.py
+1
-1
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+3
-2
lib/python/Products/ZCatalog/ZCatalogIndexes.py
lib/python/Products/ZCatalog/ZCatalogIndexes.py
+1
-1
lib/python/Products/ZODBMountPoint/MountedObject.py
lib/python/Products/ZODBMountPoint/MountedObject.py
+1
-1
lib/python/Products/ZReST/ZReST.py
lib/python/Products/ZReST/ZReST.py
+1
-1
lib/python/Products/ZSQLMethods/SQL.py
lib/python/Products/ZSQLMethods/SQL.py
+1
-1
lib/python/Shared/DC/Scripts/Bindings.py
lib/python/Shared/DC/Scripts/Bindings.py
+1
-1
lib/python/Shared/DC/Scripts/BindingsUI.py
lib/python/Shared/DC/Scripts/BindingsUI.py
+1
-1
lib/python/Shared/DC/Scripts/Script.py
lib/python/Shared/DC/Scripts/Script.py
+1
-1
lib/python/Shared/DC/ZRDB/Connection.py
lib/python/Shared/DC/ZRDB/Connection.py
+1
-1
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+1
-1
lib/python/Testing/ZopeTestCase/ZopeLite.py
lib/python/Testing/ZopeTestCase/ZopeLite.py
+1
-1
lib/python/ZClasses/Property.py
lib/python/ZClasses/Property.py
+1
-1
lib/python/ZClasses/ZClass.py
lib/python/ZClasses/ZClass.py
+1
-1
lib/python/ZClasses/ZClassOwner.py
lib/python/ZClasses/ZClassOwner.py
+1
-1
lib/python/Zope2/App/startup.py
lib/python/Zope2/App/startup.py
+2
-2
lib/python/webdav/Collection.py
lib/python/webdav/Collection.py
+1
-1
lib/python/webdav/Lockable.py
lib/python/webdav/Lockable.py
+1
-1
lib/python/webdav/NullResource.py
lib/python/webdav/NullResource.py
+1
-1
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+1
-1
No files found.
lib/python/AccessControl/Owned.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/AccessControl/Permission.py
View file @
d14c1332
...
@@ -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
:
...
...
lib/python/AccessControl/PermissionMapping.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/AccessControl/Role.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/AccessControl/SecurityInfo.py
View file @
d14c1332
...
@@ -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
)
lib/python/AccessControl/User.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/AccessControl/securitySuite/regressionSecurity.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/AccessControl/tests/testAcquisition.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/AccessControl/tests/testBindings.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/AccessControl/tests/testClassSecurityInfo.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/AccessControl/tests/testZopeGuards.py
View file @
d14c1332
...
@@ -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
:
...
...
lib/python/App/ApplicationManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/App/CacheManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/App/DavLockManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/App/Factory.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/App/FactoryDispatcher.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/App/ImageFile.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/App/Management.py
View file @
d14c1332
...
@@ -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
)
...
...
lib/python/App/Permission.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/App/Product.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/App/Undo.py
View file @
d14c1332
...
@@ -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
)
...
...
lib/python/App/tests/test_class_init.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/HelpSys/APIHelpTopic.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/HelpSys/HelpSys.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/HelpSys/HelpTopic.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/HelpSys/ObjectRef.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/Application.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/Cache.py
View file @
d14c1332
...
@@ -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__'
...
...
lib/python/OFS/CopySupport.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/DTMLDocument.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/DTMLMethod.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/FindSupport.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/Folder.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/History.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/Image.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/ObjectManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/OrderSupport.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/PropertyManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/PropertySheets.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/SimpleItem.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/Traversable.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/ZDOM.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/OFS/misc_.py
View file @
d14c1332
...
@@ -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_
:
...
...
lib/python/Products/BTreeFolder2/BTreeFolder2.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/ExternalMethod/ExternalMethod.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Five/browser/metaconfigure.py
View file @
d14c1332
...
@@ -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
i
nitializeClass
from
App.class_init
import
I
nitializeClass
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
=
i
nitializeClass
,
callable
=
I
nitializeClass
,
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
=
i
nitializeClass
,
callable
=
I
nitializeClass
,
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
=
i
nitializeClass
,
callable
=
I
nitializeClass
,
args
=
(
new_class
,)
args
=
(
new_class
,)
)
)
...
...
lib/python/Products/Five/form/metaconfigure.py
View file @
d14c1332
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
$Id$
$Id$
"""
"""
from
App.class_init
import
default__class_init__
as
i
nitializeClass
from
App.class_init
import
I
nitializeClass
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
)
i
nitializeClass
(
class_
)
I
nitializeClass
(
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
)
i
nitializeClass
(
class_
)
I
nitializeClass
(
class_
)
class
AddFormDirective
(
FiveFormDirective
):
class
AddFormDirective
(
FiveFormDirective
):
...
...
lib/python/Products/Five/form/objectwidget.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Five/form/tests/schemacontent.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Five/formlib/tests/content.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Five/metaconfigure.py
View file @
d14c1332
...
@@ -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
=
i
nitializeClass
,
callable
=
I
nitializeClass
,
args
=
(
self
.
__class
,)
args
=
(
self
.
__class
,)
)
)
lib/python/Products/Five/security.py
View file @
d14c1332
...
@@ -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
A
pp.class_init
import
default__class_init__
as
initializeClass
from
A
ccessControl.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
=
{}
...
...
lib/python/Products/Five/tests/test_security.py
View file @
d14c1332
...
@@ -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:
...
...
lib/python/Products/Five/tests/testing/fancycontent.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Five/tests/testing/simplecontent.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Five/viewlet/metaconfigure.py
View file @
d14c1332
...
@@ -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
i
nitializeClass
from
App.class_init
import
I
nitializeClass
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
=
i
nitializeClass
,
callable
=
I
nitializeClass
,
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
=
i
nitializeClass
,
callable
=
I
nitializeClass
,
args
=
(
new_class
,)
args
=
(
new_class
,)
)
)
lib/python/Products/MailHost/MailHost.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/OFSP/Draft.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/OFSP/Version.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/PageTemplates/PageTemplateFile.py
View file @
d14c1332
...
@@ -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'
}
...
...
lib/python/Products/PageTemplates/ZopePageTemplate.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/PluginIndexes/DateRangeIndex/DateRangeIndex.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/PluginIndexes/TextIndex/Vocabulary.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/PythonScripts/PythonScript.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Sessions/BrowserIdManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Sessions/SessionDataManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/SiteAccess/VirtualHostMonster.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/SiteErrorLog/SiteErrorLog.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/StandardCacheManagers/RAMCacheManager.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Transience/Transience.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/Transience/TransientObject.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/ZCTextIndex/ZCTextIndex.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/ZCatalog/ZCatalog.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/ZCatalog/ZCatalogIndexes.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/ZODBMountPoint/MountedObject.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/ZReST/ZReST.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Products/ZSQLMethods/SQL.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Shared/DC/Scripts/Bindings.py
View file @
d14c1332
...
@@ -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'
,
...
...
lib/python/Shared/DC/Scripts/BindingsUI.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Shared/DC/Scripts/Script.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Shared/DC/ZRDB/Connection.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Testing/ZopeTestCase/ZopeLite.py
View file @
d14c1332
...
@@ -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
):
...
...
lib/python/ZClasses/Property.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/ZClasses/ZClass.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/ZClasses/ZClassOwner.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/Zope2/App/startup.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/webdav/Collection.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/webdav/Lockable.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/webdav/NullResource.py
View file @
d14c1332
...
@@ -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
...
...
lib/python/webdav/Resource.py
View file @
d14c1332
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment