[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/grants/tests - permissionservice.py:1.2.6.1 roleservice.py:1.2.6.1 test_principalroleview.py:1.5.2.1

Guido van Rossum guido@python.org
Wed, 26 Feb 2003 17:02:14 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/security/grants/tests
In directory cvs.zope.org:/tmp/cvs-serv4607/src/zope/app/browser/security/grants/tests

Modified Files:
      Tag: use-config-branch
	permissionservice.py roleservice.py test_principalroleview.py 
Log Message:
Add ISimpleService.

=== Zope3/src/zope/app/browser/security/grants/tests/permissionservice.py 1.2 => 1.2.6.1 ===
--- Zope3/src/zope/app/browser/security/grants/tests/permissionservice.py:1.2	Wed Dec 25 09:12:35 2002
+++ Zope3/src/zope/app/browser/security/grants/tests/permissionservice.py	Wed Feb 26 17:02:13 2003
@@ -18,6 +18,7 @@
 
 from zope.app.interfaces.security import IPermissionService
 from zope.app.interfaces.security import IPermission
+from zope.app.interfaces.services.interfaces import ISimpleService
 
 class Permission:
 
@@ -30,7 +31,7 @@
 
 class PermissionService:
 
-    __implements__ = IPermissionService
+    __implements__ = IPermissionService, ISimpleService
 
     def __init__(self, **kw):
         self._permissions = r = {}


=== Zope3/src/zope/app/browser/security/grants/tests/roleservice.py 1.2 => 1.2.6.1 ===
--- Zope3/src/zope/app/browser/security/grants/tests/roleservice.py:1.2	Wed Dec 25 09:12:35 2002
+++ Zope3/src/zope/app/browser/security/grants/tests/roleservice.py	Wed Feb 26 17:02:13 2003
@@ -18,6 +18,7 @@
 
 from zope.app.interfaces.security import IRoleService
 from zope.app.interfaces.security import IRole
+from zope.app.interfaces.services.interfaces import ISimpleService
 
 class Role:
 
@@ -30,7 +31,7 @@
 
 class RoleService:
 
-    __implements__ = IRoleService
+    __implements__ = IRoleService, ISimpleService
 
     def __init__(self, **kw):
         self._roles = r = {}


=== Zope3/src/zope/app/browser/security/grants/tests/test_principalroleview.py 1.5 => 1.5.2.1 ===
--- Zope3/src/zope/app/browser/security/grants/tests/test_principalroleview.py:1.5	Tue Feb 11 21:17:10 2003
+++ Zope3/src/zope/app/browser/security/grants/tests/test_principalroleview.py	Wed Feb 26 17:02:13 2003
@@ -29,6 +29,7 @@
 from zope.app.interfaces.security import IPrincipalRoleManager
 from zope.app.interfaces.security import IPrincipalRoleMap
 from zope.publisher.browser import TestRequest
+from zope.app.interfaces.services.interfaces import ISimpleService
 
 class DummySetting:
     def __init__(self, name):
@@ -45,7 +46,7 @@
 
 class DummyRoleService:
 
-    __implements__ = IRoleService
+    __implements__ = IRoleService, ISimpleService
 
     def __init__(self, roles):
         self._roles = roles
@@ -66,7 +67,7 @@
 
 class DummyAuthenticationService:
 
-    __implements__ = IAuthenticationService
+    __implements__ = IAuthenticationService, ISimpleService
 
     def __init__(self, principals):
         self._principals = principals