[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/RoleService - role-service.zcml:1.1.2.2

Stephan Richter srichter@cbu.edu
Tue, 2 Apr 2002 17:25:24 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	role-service.zcml 
Log Message:
Issue 54: Resolve

Cleaned up the ZMI namespace quiet a bit:

- Removed the deprecated provideClass directive from the Code.
- Added "class" attribute to factoryFromClass to the "zmi" and "service" 
  namespace.
- Changed existing directives to reflect this change.
- Corrected tests. 



=== Zope3/lib/python/Zope/App/OFS/RoleService/role-service.zcml 1.1.2.1 => 1.1.2.2 ===
 >
 
-<security:protectClass name="Zope.App.OFS.RoleService.">
+<security:protectClass name=".RoleService.">
    <security:instances permission_id="Zope.Public" />
    <security:protect interface="Zope.App.Security.IRoleService." 
                      permission_id="Zope.Security" />
@@ -15,21 +15,20 @@
                      permission_id="Zope.ManageServices" />
 </security:protectClass>
 
-<security:protectClass name="Zope.App.OFS.RoleService.Role.">
+<security:protectClass name=".Role.">
    <security:instances permission_id="Zope.Public" />
    <security:protect interface="Zope.App.Security.IRole." 
                      permission_id="Zope.Security" />
 </security:protectClass>
 
 
-<service:provideClass
-  name="Zope.App.OFS.RoleService."
-  permission_id="Zope.ManageServices"
-  title="Role Service"
-  />
+<service:factoryFromClass name="RoleService"
+                          class=".RoleService."
+                          permission_id="Zope.ManageServices"
+                          title="Role Service" />
 
-<factory component="Zope.App.OFS.RoleService.Role." />
+<factory component=".Role." />
 
-<include package="Zope.App.OFS.RoleService.Views" file="views.zcml" />
+<include package=".Views" file="views.zcml" />
 
 </zopeConfigure>