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
e1bf49e1
Commit
e1bf49e1
authored
Jan 03, 2009
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- use ApplicationDefaultPermissions directly from new location
parent
9b1c5b1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
lib/python/AccessControl/Permission.py
lib/python/AccessControl/Permission.py
+3
-4
No files found.
lib/python/AccessControl/Permission.py
View file @
e1bf49e1
...
...
@@ -7,7 +7,7 @@
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
.
#
##############################################################################
"""Permissions
...
...
@@ -121,7 +121,6 @@ _registerdPermission=_registeredPermissions.has_key
def
registerPermissions
(
permissions
,
defaultDefault
=
(
'Manager'
,)):
"""Register an __ac_permissions__ sequence.
"""
from
App.class_init
import
ApplicationDefaultPermissions
import
Products
for
setting
in
permissions
:
if
_registerdPermission
(
setting
[
0
]):
continue
...
...
@@ -140,5 +139,5 @@ def registerPermissions(permissions, defaultDefault=('Manager',)):
mangled
,
default
)
class
ApplicationDefaultPermissions
:
_View_Permission
=
'Manager'
,
'Anonymous'
_Access_contents_information_Permission
=
'Manager'
,
'Anonymous'
_View_Permission
=
(
'Manager'
,
'Anonymous'
)
_Access_contents_information_Permission
=
(
'Manager'
,
'Anonymous'
)
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