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

Jim Fulton jim@zope.com
Tue, 31 Dec 2002 13:27:25 -0500


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

Modified Files:
	configure.zcml 
Log Message:
Hold on to your butts! :)

In an effort to make zcml view definitions even easier to understand
(see 
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ZCMLBrowserViewDirectiveSimplification
)

I've finished a long-overdue refactoring of the configuration
directives for defining views. The logic is now a good bit less
complicated. 

I also simplified the way security assertions on views were
handled. To make this work right, I had to fix a bug in the
publication machinery. Now, as objects are traversed, the results of
traversal are put in security proxies.  This is really necessary to
treat URLs as "untrusted code", which they are.

I updated the meta-configuration directives for views and ran the zcml
documentation utility, so there is now documentation for the (new)
view directives. See the files 'page', 'pages', and 'view', in 
'doc/zcml/namespaces.zope.org/browser'.

I feel these changes are highly desireable for the alpha, but they are
significant enough that the chance of breakage is a lot higher than
I'd like just before the alpha.  I'd appreciate it if folks would let
me know if I've broken anything.



=== Zope3/src/zope/app/browser/security/grants/configure.zcml 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/security/grants/configure.zcml:1.4	Mon Dec 30 18:50:26 2002
+++ Zope3/src/zope/app/browser/security/grants/configure.zcml	Tue Dec 31 13:26:54 2002
@@ -5,10 +5,10 @@
 
 <!-- Role Permissions -->
 
-  <browser:view
+  <browser:pages
       for="zope.app.interfaces.annotation.IAnnotatable"
       permission="zope.Security"
-      factory=".rolepermissionview.RolePermissionView">
+      class=".rolepermissionview.RolePermissionView">
 
     <browser:page name="AllRolePermissions.html"
                   attribute="index" />
@@ -22,7 +22,7 @@
                   attribute="manage_permissionForm" />
     <browser:page name="ChangeRolesWithPermission.html"
                   attribute="update_permission" />
-  </browser:view>
+  </browser:pages>
 
   <!--browser:menuItem
       for="zope.app.interfaces.annotation.IAnnotatable"
@@ -47,14 +47,14 @@
 
 <!-- Principal Roles -->
 
-  <browser:view for="zope.app.interfaces.annotation.IAnnotatable"
+  <browser:pages for="zope.app.interfaces.annotation.IAnnotatable"
                 permission="zope.Security"
-                factory=".principalroleview.PrincipalRoleView">
+                class=".principalroleview.PrincipalRoleView">
     <browser:page name="PrincipalRoles.html"
                   attribute="index" />
     <browser:page name="ChangePrincipalRoles.html"
                   attribute="action" />
-    </browser:view>
+    </browser:pages>
 
   <!--browser:menuItem
       for="zope.app.interfaces.annotation.IAnnotatable"