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
ff702fc5
Commit
ff702fc5
authored
Jan 03, 2009
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added 'InitializeClass' alias to ease migration
parent
a0263918
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
doc/CHANGES.txt
doc/CHANGES.txt
+5
-1
lib/python/App/class_init.py
lib/python/App/class_init.py
+2
-0
lib/python/Globals/__init__.py
lib/python/Globals/__init__.py
+1
-5
No files found.
doc/CHANGES.txt
View file @
ff702fc5
...
@@ -8,7 +8,11 @@ Zope Changes
...
@@ -8,7 +8,11 @@ Zope Changes
Restructuring
Restructuring
- Moved 'ApplicationDefaultPermissiosn' from 'App.class_init' to
- Added 'InitializeClass' alias in 'App.class_init' to ease migration.
In Zope 2.12 it will be recommended to import 'InitializeClass' from
'App.class_init' instead of 'Globals'.
- Moved 'ApplicationDefaultPermissions' from 'App.class_init' to
'AccessControl.Permissions', in order to break an import cycle
'AccessControl.Permissions', in order to break an import cycle
in third-party code which avoids imports from 'Globals.' Left
in third-party code which avoids imports from 'Globals.' Left
the class importable from its old location without deprecation.
the class importable from its old location without deprecation.
...
...
lib/python/App/class_init.py
View file @
ff702fc5
...
@@ -79,3 +79,5 @@ def default__class_init__(self):
...
@@ -79,3 +79,5 @@ def default__class_init__(self):
"Class %s.%s has a security declaration for "
"Class %s.%s has a security declaration for "
"nonexistent method %r"
,
self
.
__module__
,
"nonexistent method %r"
,
self
.
__module__
,
self
.
__name__
,
mname
)
self
.
__name__
,
mname
)
InitializeClass
=
default__class_init__
# future name
lib/python/Globals/__init__.py
View file @
ff702fc5
...
@@ -27,11 +27,7 @@ from AccessControl.Permission import ApplicationDefaultPermissions
...
@@ -27,11 +27,7 @@ from AccessControl.Permission import ApplicationDefaultPermissions
from
App.Common
import
package_home
,
attrget
,
Dictionary
from
App.Common
import
package_home
,
attrget
,
Dictionary
from
App.config
import
getConfiguration
as
_getConfiguration
from
App.config
import
getConfiguration
as
_getConfiguration
from
Persistence
import
Persistent
,
PersistentMapping
from
Persistence
import
Persistent
,
PersistentMapping
from
App.class_init
import
default__class_init__
from
App.class_init
import
InitializeClass
,
default__class_init__
# Nicer alias for class initializer.
InitializeClass
=
default__class_init__
from
App.special_dtml
import
HTML
,
HTMLFile
,
DTMLFile
from
App.special_dtml
import
HTML
,
HTMLFile
,
DTMLFile
from
App.Dialogs
import
MessageDialog
from
App.Dialogs
import
MessageDialog
from
App.ImageFile
import
ImageFile
from
App.ImageFile
import
ImageFile
...
...
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