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
aa09b9ca
Commit
aa09b9ca
authored
Dec 12, 2011
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport the robustness improvements related to Products.Zope_Hotfix_20111024
parent
7a240912
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/AccessControl/SecurityInfo.py
src/AccessControl/SecurityInfo.py
+5
-1
src/App/PersistentExtra.py
src/App/PersistentExtra.py
+0
-2
No files found.
src/AccessControl/SecurityInfo.py
View file @
aa09b9ca
...
...
@@ -41,8 +41,13 @@
import
sys
from
logging
import
getLogger
from
App.class_init
import
InitializeClass
from
AccessControl.ImplPython
import
_what_not_even_god_should_do
from
Acquisition
import
Implicit
from
Persistence
import
Persistent
# always patch Persistent before ClassSecurityInfo is used
Persistent
.
__class_init__
=
InitializeClass
LOG
=
getLogger
(
'SecurityInfo'
)
...
...
@@ -311,5 +316,4 @@ def allow_class(Class):
sec
.
declareObjectPublic
()
sec
.
setDefaultAccess
(
1
)
sec
.
apply
(
Class
)
from
App.class_init
import
InitializeClass
InitializeClass
(
Class
)
src/App/PersistentExtra.py
View file @
aa09b9ca
...
...
@@ -42,9 +42,7 @@ def patchPersistent():
from
zope.interface
import
classImplements
from
Persistence
import
Persistent
from
App.class_init
import
default__class_init__
from
App.interfaces
import
IPersistentExtra
Persistent
.
__class_init__
=
default__class_init__
for
k
,
v
in
PersistentUtil
.
__dict__
.
items
():
if
k
[
0
]
!=
'_'
:
...
...
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