[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - security.zcml:1.1.2.8.2.1

Jim Fulton jim@zope.com
Sun, 2 Jun 2002 10:35:23 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv29793/lib/python/Zope/App/Security

Modified Files:
      Tag: Zope3InWonderland-branch
	security.zcml 
Log Message:
- Added template attribute to allow views to be created from a
  template source file.

- Added beginnings of a Zope debugger. This required seperating site
  and server configuration.

- Added the ability to specify a config file package in the
  zopeConfigure directive. Made "config.zcml" a default for the file
  attribute in the include directive.

- Fixed mapply to unwrap proxied objects. This was necessary once
  views became wrapped in proxies. We need to investigate why they
  weren't being wrapped before. 

- I updated enough system page templates and zcml directives so that:

  - Zope now starts. :)

  - The root folder contents listing can be viewed.

  Many more templates and zcml files need to be updated to reflect the
  way views are now handled.



=== Zope3/lib/python/Zope/App/Security/security.zcml 1.1.2.8 => 1.1.2.8.2.1 ===
   name="Zope.App.Security.ZopeSecurityPolicy.zopeSecurityPolicy" />
 
-
 <adapter factory="Zope.App.Security.BasicAuthAdapter."
          provides="Zope.App.Security.ILoginPassword."
          for="Zope.Publisher.HTTP.IHTTPCredentials." />
@@ -43,12 +42,7 @@
 
 
 <!-- Role-Permission management view -->
-  
-<security:protectClass class="Zope.App.Security.RolePermissionView."
-   permission_id="Zope.Security"
-   names="index, roles, permissions, permissionRoles, action,
-   manage_permissionForm, update_permission,
-   manage_roleForm, update_role, permissionForID" />
+
 
 <security:protectClass
    class="Zope.App.Security.RolePermissionView.PermissionRoles."
@@ -56,10 +50,30 @@
    names="roles, rolesInfo"
    interface="Zope.App.Security.IRegisteredObject." />
 
+<browser:view for="Zope.App.OFS.Annotation.IAnnotatable."
+              permission_id="Zope.Security"
+              factory="Zope.App.Security.RolePermissionView.">
+
+    <browser:page name="AllRolePermissions.html" 
+                  attribute="index"
+                  />
+    <browser:page name="ChangeAllRolePermissions.html" 
+                  attribute="action"
+                  />
+    <browser:page name="RolePermissions.html" 
+                  attribute="manage_RoleForm"
+                  />
+    <browser:page name="ChangeRolePermissions.html" 
+                  attribute="update_role"
+                  />
+    <browser:page name="RolesWithPermission.html" 
+                  attribute="manage_permissionForm"
+                  />
+    <browser:page name="ChangeRolesWithPermission.html" 
+                  attribute="update_permission"
+                  />
 
-<browser:view name="RolePermissionsManagement"
-              for="Zope.App.OFS.Annotation.IAnnotatable."
-              factory="Zope.App.Security.RolePermissionView." />
+</browser:view>
 
 <adapter factory=".AnnotationRolePermissionManager."
          provides=".IRolePermissionManager."