[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/tests -
workflowsetup.py:1.7
Chris McDonough
chrism at plope.com
Wed Jan 14 17:56:00 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv5558/src/zope/app/workflow/tests
Modified Files:
workflowsetup.py
Log Message:
Merge security policy refactoring:
- Moved all role- and grant-related functionality into
zope.products.securitypolicy (and out of zope.app.security.grant).
The zope.products.securitypolicy implementation is exactly
the same as the old implementation; no changes were made
to the actual mechanics of role-permission or principal-permission
grants. The only real difference is that all functionality
that is the purview of what we want a security policy to have
control of is now in that one place.
- Created new modulealias directive which can be used to provide
aliases to older modules (to not break existing ZODBs when
module locations change).
- Added minor feature: "make debug" launches a debug session in the
spirit of Zope 2's "zopectl debug".
=== Zope3/src/zope/app/workflow/tests/workflowsetup.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/workflow/tests/workflowsetup.py:1.6 Sat Jun 21 17:22:17 2003
+++ Zope3/src/zope/app/workflow/tests/workflowsetup.py Wed Jan 14 17:55:29 2004
@@ -18,11 +18,10 @@
"""
from zope.component import getService, getServiceManager
-from zope.app.services.servicenames import Roles, Permissions
+from zope.app.services.servicenames import Permissions
from zope.app.services.servicenames import Authentication, Workflows
from zope.app.interfaces.security import IAuthenticationService
-from zope.app.interfaces.security import IRoleService
from zope.app.interfaces.security import IPermissionService
from zope.app.security.registries.principalregistry import principalRegistry
from zope.app.security.registries.permissionregistry import permissionRegistry
@@ -64,11 +63,6 @@
self.root_sm.defineService(Authentication, IAuthenticationService)
self.root_sm.provideService(Authentication, principalRegistry)
return getService(self.rootFolder, Authentication)
-
- def setupRoleService(self):
- self.root_sm.defineService(Roles, IRoleService)
- self.root_sm.provideService(Roles, roleRegistry)
- return getService(self.rootFolder, Roles)
def setupPermissionService(self):
self.root_sm.defineService(Permissions, IPermissionService)
More information about the Zope3-Checkins
mailing list