[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/grants - configure.zcml:1.6

Godefroid Chapelle gotcha@swing.be
Fri, 11 Apr 2003 18:16:16 -0400


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

Modified Files:
	configure.zcml 
Log Message:
- added usage argument to ZCML menu directive
  The menu usage is used by the configuration to initialize 
  the page view usage in case a page is registered as a
  menu item included in a menu declared with a usage argument.

- added corresponding tests

- various ZCML refactorings to improve usage initialization

- added tests for menu and usage on page directive



=== Zope3/src/zope/app/browser/security/grants/configure.zcml 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/security/grants/configure.zcml:1.5	Tue Dec 31 13:26:54 2002
+++ Zope3/src/zope/app/browser/security/grants/configure.zcml	Fri Apr 11 18:15:45 2003
@@ -31,18 +31,13 @@
       action="@@AllRolePermissions.html"
       /-->
 
-  <browser:menuItem
-      for="zope.app.interfaces.annotation.IAnnotatable"
-      menu="zmi_actions"
-      title="Grant"
-      action="@@grant.html"
-      />
-
   <browser:page
     for="zope.app.interfaces.annotation.IAnnotatable"
     name="grant.html"
     permission="zope.Security"
     template="grant.pt" 
+    menu="zmi_actions"
+    title="Grant"
     />
 
 <!-- Principal Roles -->