Commit 9a804c3d authored by Hanno Schlichting's avatar Hanno Schlichting

Avoid the Base* prefix, now that the class is in a different module

parent 4257dbfe
...@@ -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.BaseRoleManager 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
......
...@@ -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 "
"BaseRoleManager class from AccessControl.rolemanager.", "RoleManager class from AccessControl.rolemanager.",
RoleManager = 'OFS.role:RoleManager', RoleManager = 'OFS.role:RoleManager',
) )
...@@ -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 BaseRoleManager(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(BaseRoleManager) InitializeClass(RoleManager)
def reqattr(request, attr): def reqattr(request, attr):
......
...@@ -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 BaseRoleManager from AccessControl.rolemanager import RoleManager
from zope.interface.verify import verifyClass from zope.interface.verify import verifyClass
verifyClass(IRoleManager, BaseRoleManager) verifyClass(IRoleManager, RoleManager)
def test_suite(): def test_suite():
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment