[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/RoleService - RoleService.py:1.5

Jim Fulton jim@zope.com
Thu, 1 Aug 2002 14:42:43 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/RoleService
In directory cvs.zope.org:/tmp/cvs-serv5741/lib/python/Zope/App/OFS/Services/RoleService

Modified Files:
	RoleService.py 
Log Message:
Removed dependcies of:

  Zope.ComponentArchitecture
  Zope.Configuration
  Zope.Exceptions
  Zope.Testing

on other packages, especially App, in preparation for making these
packages part of Zope 2 and useful outside of the Zope application.

In particular, all placeful service support was moved to
Zope.App.ComponentArchitecture.  

Placeful service implementors should get the nextService and
nextServiceManager functions from
Zope.App.ComponentArchitecture.NextService. 




=== Zope3/lib/python/Zope/App/OFS/Services/RoleService/RoleService.py 1.4 => 1.5 ===
 from Zope.App.OFS.Container.IContainer import IContainer
 from Zope.App.Security.Registries.RoleRegistry import roleRegistry
 from Zope.ContextWrapper import ContextMethod
-from Zope.ComponentArchitecture import getNextService
+from Zope.App.ComponentArchitecture.NextService import getNextService
 
 class ILocalRoleService(IRoleService, IContainer):
     """TTW manageable role service"""
@@ -48,7 +48,7 @@
     def getRoles(wrapped_self):
         '''See interface IRoleService'''
         roles = list(wrapped_self.values())
-        roleserv=getNextService(wrapped_self, 'Roles')
+        roleserv = getNextService(wrapped_self, 'Roles')
         if roleserv:
             roles.extend(roleserv.getRoles())
         return roles