[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/tests - workflowsetup.py:1.9

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 8 07:07:05 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv13053/src/zope/app/workflow/tests

Modified Files:
	workflowsetup.py 
Log Message:


Adjusted code to use the new APIs for permissions and principals. Also, use
the utility service instead of the permission registry to look up permissions.




=== Zope3/src/zope/app/workflow/tests/workflowsetup.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/workflow/tests/workflowsetup.py:1.8	Wed Mar  3 15:20:36 2004
+++ Zope3/src/zope/app/workflow/tests/workflowsetup.py	Mon Mar  8 07:06:26 2004
@@ -20,12 +20,9 @@
 
 from zope.app import zapi
 from zope.app.interfaces.annotation import IAttributeAnnotatable
-from zope.app.interfaces.security import \
-     IAuthenticationService, IPermissionService
-from zope.app.security.registries.principalregistry import principalRegistry
-from zope.app.security.registries.permissionregistry import permissionRegistry
-from zope.app.services.servicenames import \
-     Permissions, Authentication, Workflows, Utilities
+from zope.app.security.interfaces import IAuthenticationService
+from zope.app.security.principalregistry import principalRegistry
+from zope.app.services.servicenames import Authentication, Workflows, Utilities
 from zope.app.services.tests.placefulsetup import PlacefulSetup
 from zope.app.services.utility import LocalUtilityService
 from zope.app.tests import setup
@@ -60,9 +57,3 @@
         self.root_sm.defineService(Authentication, IAuthenticationService)
         self.root_sm.provideService(Authentication, principalRegistry)
         return zapi.getService(self.rootFolder, Authentication)
-
-    def setupPermissionService(self):
-        self.root_sm.defineService(Permissions, IPermissionService)
-        self.root_sm.provideService(Permissions, permissionRegistry)
-        return zapi.getService(self.rootFolder, Permissions)
-




More information about the Zope3-Checkins mailing list