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
f2f140e2
Commit
f2f140e2
authored
Dec 11, 2000
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed object* methods to declareObject* and updated docstrings.
parent
1142f28b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
lib/python/AccessControl/SecurityInfo.py
lib/python/AccessControl/SecurityInfo.py
+14
-9
No files found.
lib/python/AccessControl/SecurityInfo.py
View file @
f2f140e2
...
@@ -163,19 +163,19 @@ class SecurityInfo(Acquisition.Implicit):
...
@@ -163,19 +163,19 @@ class SecurityInfo(Acquisition.Implicit):
"""Declare names to be associated with a permission."""
"""Declare names to be associated with a permission."""
self
.
_setaccess
(
names
,
permission_name
)
self
.
_setaccess
(
names
,
permission_name
)
o
bjectPublic__roles__
=
ACCESS_PRIVATE
declareO
bjectPublic__roles__
=
ACCESS_PRIVATE
def
o
bjectPublic
(
self
):
def
declareO
bjectPublic
(
self
):
"""Declare
names
to be publicly accessible."""
"""Declare
the object
to be publicly accessible."""
self
.
_setaccess
((),
ACCESS_PUBLIC
)
self
.
_setaccess
((),
ACCESS_PUBLIC
)
o
bjectPrivate__roles__
=
ACCESS_PRIVATE
declareO
bjectPrivate__roles__
=
ACCESS_PRIVATE
def
o
bjectPrivate
(
self
):
def
declareO
bjectPrivate
(
self
):
"""Declare
names
to be inaccessible to restricted code."""
"""Declare
the object
to be inaccessible to restricted code."""
self
.
_setaccess
((),
ACCESS_PRIVATE
)
self
.
_setaccess
((),
ACCESS_PRIVATE
)
o
bjectProtected__roles__
=
ACCESS_PRIVATE
declareO
bjectProtected__roles__
=
ACCESS_PRIVATE
def
o
bjectProtected
(
self
,
permission_name
):
def
declareO
bjectProtected
(
self
,
permission_name
):
"""Declare
names
to be associated with a permission."""
"""Declare
the object
to be associated with a permission."""
self
.
_setaccess
((),
permission_name
)
self
.
_setaccess
((),
permission_name
)
setDefaultRoles__roles__
=
ACCESS_PRIVATE
setDefaultRoles__roles__
=
ACCESS_PRIVATE
...
@@ -313,6 +313,11 @@ class ModuleSecurityInfo(SecurityInfo):
...
@@ -313,6 +313,11 @@ class ModuleSecurityInfo(SecurityInfo):
"""Cannot declare module names protected."""
"""Cannot declare module names protected."""
pass
pass
declareObjectProtected__roles__
=
ACCESS_PRIVATE
def
declareObjectProtected
(
self
,
permission_name
):
"""Cannot declare module protected."""
pass
setDefaultRoles__roles__
=
ACCESS_PRIVATE
setDefaultRoles__roles__
=
ACCESS_PRIVATE
def
setDefaultRoles
(
self
,
permission_name
,
roles
):
def
setDefaultRoles
(
self
,
permission_name
,
roles
):
"""Cannot set default roles for permissions in a module."""
"""Cannot set default roles for permissions in a module."""
...
...
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