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
9a804c3d
Commit
9a804c3d
authored
Jun 19, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid the Base* prefix, now that the class is in a different module
parent
4257dbfe
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
8 deletions
+7
-8
src/AccessControl/AccessControl.txt
src/AccessControl/AccessControl.txt
+1
-1
src/AccessControl/Role.py
src/AccessControl/Role.py
+1
-2
src/AccessControl/rolemanager.py
src/AccessControl/rolemanager.py
+2
-2
src/AccessControl/tests/testRole.py
src/AccessControl/tests/testRole.py
+2
-2
src/OFS/role.py
src/OFS/role.py
+1
-1
No files found.
src/AccessControl/AccessControl.txt
View file @
9a804c3d
...
@@ -166,7 +166,7 @@ Mail Host
...
@@ -166,7 +166,7 @@ Mail Host
To support the architecture, developers must derive an
To support the architecture, developers must derive an
object from the AccessControl.rolemanager.
Base
RoleManager mixin class,
object from the AccessControl.rolemanager.RoleManager mixin class,
and define in their class an __ac_permissions__ attribute.
and define in their class an __ac_permissions__ attribute.
This should be a tuple of tuples, where each tuple represents
This should be a tuple of tuples, where each tuple represents
...
...
src/AccessControl/Role.py
View file @
9a804c3d
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
from
.rolemanager
import
DEFAULTMAXLISTUSERS
from
.rolemanager
import
DEFAULTMAXLISTUSERS
from
.rolemanager
import
_isBeingUsedAsAMethod
from
.rolemanager
import
_isBeingUsedAsAMethod
from
.rolemanager
import
_isNotBeingUsedAsAMethod
from
.rolemanager
import
_isNotBeingUsedAsAMethod
from
.rolemanager
import
BaseRoleManager
from
.rolemanager
import
reqattr
from
.rolemanager
import
reqattr
from
.rolemanager
import
classattr
from
.rolemanager
import
classattr
from
.rolemanager
import
instance_dict
from
.rolemanager
import
instance_dict
...
@@ -29,6 +28,6 @@ from .rolemanager import gather_permissions
...
@@ -29,6 +28,6 @@ from .rolemanager import gather_permissions
from
zope.deferredimport
import
deprecated
from
zope.deferredimport
import
deprecated
deprecated
(
"RoleManager is no longer part of AccessControl, please "
deprecated
(
"RoleManager is no longer part of AccessControl, please "
"depend on Zope2 and import from OFS.role or use the "
"depend on Zope2 and import from OFS.role or use the "
"
Base
RoleManager class from AccessControl.rolemanager."
,
"RoleManager class from AccessControl.rolemanager."
,
RoleManager
=
'OFS.role:RoleManager'
,
RoleManager
=
'OFS.role:RoleManager'
,
)
)
src/AccessControl/rolemanager.py
View file @
9a804c3d
...
@@ -40,7 +40,7 @@ def _isNotBeingUsedAsAMethod(self):
...
@@ -40,7 +40,7 @@ def _isNotBeingUsedAsAMethod(self):
return
not
aq_get
(
self
,
'_isBeingUsedAsAMethod_'
,
0
)
return
not
aq_get
(
self
,
'_isBeingUsedAsAMethod_'
,
0
)
class
Base
RoleManager
(
Base
,
RoleManager
):
class
RoleManager
(
Base
,
RoleManager
):
"""An object that has configurable permissions"""
"""An object that has configurable permissions"""
implements
(
IRoleManager
)
implements
(
IRoleManager
)
...
@@ -436,7 +436,7 @@ class BaseRoleManager(Base, RoleManager):
...
@@ -436,7 +436,7 @@ class BaseRoleManager(Base, RoleManager):
d
.
sort
()
d
.
sort
()
return
d
return
d
InitializeClass
(
Base
RoleManager
)
InitializeClass
(
RoleManager
)
def
reqattr
(
request
,
attr
):
def
reqattr
(
request
,
attr
):
...
...
src/AccessControl/tests/testRole.py
View file @
9a804c3d
...
@@ -5,10 +5,10 @@ class TestRoleManager(unittest.TestCase):
...
@@ -5,10 +5,10 @@ class TestRoleManager(unittest.TestCase):
def
test_interfaces
(
self
):
def
test_interfaces
(
self
):
from
AccessControl.interfaces
import
IRoleManager
from
AccessControl.interfaces
import
IRoleManager
from
AccessControl.rolemanager
import
Base
RoleManager
from
AccessControl.rolemanager
import
RoleManager
from
zope.interface.verify
import
verifyClass
from
zope.interface.verify
import
verifyClass
verifyClass
(
IRoleManager
,
Base
RoleManager
)
verifyClass
(
IRoleManager
,
RoleManager
)
def
test_suite
():
def
test_suite
():
...
...
src/OFS/role.py
View file @
9a804c3d
...
@@ -19,7 +19,7 @@ from App.special_dtml import DTMLFile
...
@@ -19,7 +19,7 @@ from App.special_dtml import DTMLFile
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.class_init
import
InitializeClass
from
AccessControl.class_init
import
InitializeClass
from
AccessControl.rolemanager
import
BaseRoleManager
from
AccessControl.rolemanager
import
RoleManager
as
BaseRoleManager
from
AccessControl.rolemanager
import
reqattr
from
AccessControl.rolemanager
import
reqattr
from
AccessControl.Permission
import
Permission
from
AccessControl.Permission
import
Permission
from
AccessControl.Permissions
import
change_permissions
from
AccessControl.Permissions
import
change_permissions
...
...
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