[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/grants - grant.pt:1.1 configure.zcml:1.3

Godefroid Chapelle gotcha@swing.be
Mon, 30 Dec 2002 10:31:06 -0500


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

Modified Files:
	configure.zcml 
Added Files:
	grant.pt 
Log Message:
change role permissions and principal roles views to new 'Grant' action.


=== Added File Zope3/src/zope/app/browser/security/grants/grant.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
<style metal:fill-slot="headers" type="text/css" ></style>
</head>
<body bgcolor="#ffffff" link="#000099" alink="#000099" vlink="#000099">
<div metal:fill-slot="body">
    <p>
    <a href="@@AllRolePermissions.html">Grant permissions to roles</a>
    </p>
    <p>
    <a href="@@PrincipalRoles.html">Grant roles to principals</a>
    </p>
</div>
</body>
</html>


=== Zope3/src/zope/app/browser/security/grants/configure.zcml 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/security/grants/configure.zcml:1.2	Wed Dec 25 09:12:34 2002
+++ Zope3/src/zope/app/browser/security/grants/configure.zcml	Mon Dec 30 10:31:05 2002
@@ -24,13 +24,26 @@
                   attribute="update_permission" />
   </browser:view>
 
-  <browser:menuItem
+  <!--browser:menuItem
       for="zope.app.interfaces.annotation.IAnnotatable"
-      menu="zmi_views"
+      menu="zmi_actions"
       title="Role Permissions"
       action="@@AllRolePermissions.html"
+      /-->
+
+  <browser:menuItem
+      for="zope.app.interfaces.annotation.IAnnotatable"
+      menu="zmi_actions"
+      title="Grant"
+      action="@@grant.html"
       />
 
+  <browser:view 
+    for="zope.app.interfaces.annotation.IAnnotatable"
+    name="grant.html"
+    permission="zope.Security"
+    template="grant.pt" />
+
 <!-- Principal Roles -->
 
   <browser:view for="zope.app.interfaces.annotation.IAnnotatable"
@@ -42,12 +55,12 @@
                   attribute="action" />
     </browser:view>
 
-  <browser:menuItem
+  <!--browser:menuItem
       for="zope.app.interfaces.annotation.IAnnotatable"
-      menu="zmi_views"
-      title="Principal Role"
-      action="PrincipalRoles.html"
-      />
+      menu="zmi_actions"
+      title="Principal Roles"
+      action="@@PrincipalRoles.html"
+      /-->
 
 <!-- Principal Permission (not working) -->