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
3abab057
Commit
3abab057
authored
Mar 12, 2002
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix allow_type
parent
bc5a444b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/AccessControl/SimpleObjectPolicies.py
lib/python/AccessControl/SimpleObjectPolicies.py
+3
-3
No files found.
lib/python/AccessControl/SimpleObjectPolicies.py
View file @
3abab057
...
...
@@ -12,8 +12,8 @@
##############################################################################
__doc__
=
'''Collect rules for access to objects that don
\
'
t have roles.
$Id: SimpleObjectPolicies.py,v 1.1
0 2002/01/11 17:14:27
evan Exp $'''
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
$Id: SimpleObjectPolicies.py,v 1.1
1 2002/03/12 19:37:14
evan Exp $'''
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
_noroles
=
[]
# this is imported from various places
...
...
@@ -57,5 +57,5 @@ def allow_type(Type, allowed=1):
raise
ValueError
,
"%s handles its own security"
%
`Type`
if
not
(
isinstance
(
allowed
,
IntType
)
or
isinstance
(
allowed
,
DictType
)):
raise
ValueError
,
"The 'allowed' argument must be an int or dict."
ContainerAssertions
.
update
(
Type
,
allowed
)
ContainerAssertions
[
Type
]
=
allowed
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