[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder - configure.zcml:1.4

Jim Fulton jim@zope.com
Thu, 20 Jun 2002 11:55:22 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder
In directory cvs.zope.org:/tmp/cvs-serv15462/lib/python/Zope/App/OFS/Content/Folder

Modified Files:
	configure.zcml 
Log Message:
implemented:

http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/MergeSecurityIntoZopeNamespace

While I was at it, I couldn't resist implementing a variation of:

http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/SecurityPackageReorg

which was a lot more work. 



=== Zope3/lib/python/Zope/App/OFS/Content/Folder/configure.zcml 1.3 => 1.4 ===
    xmlns='http://namespaces.zope.org/zope'
-   xmlns:security='http://namespaces.zope.org/security'
    xmlns:zmi='http://namespaces.zope.org/zmi'
 >
 
@@ -12,26 +11,24 @@
         permission="Zope.ManageContent"
         title="Folder"
         description="Minimal folder" />
-    <security:require
-        permission="Zope.View" />
-    <security:allow
+    <allow
         interface="Zope.ComponentArchitecture.IServiceManagerContainer.IReadServiceManagerContainer" 
         />
-    <security:require
+    <require
         permission="Zope.ManageServices"
         interface="Zope.ComponentArchitecture.IServiceManagerContainer.IWriteServiceManagerContainer" 
         />
-    <security:require
+    <require
         permission="Zope.View"
         interface="Zope.App.OFS.Container.IContainer.IReadContainer" />
-    <security:require
+    <require
         permission="Zope.ManageContent"
         interface="Zope.App.OFS.Container.IContainer.IWriteContainer" />
   </content>
 
   <!-- XXX Do we really need RootFolder? -->
   <content class=".RootFolder.">
-    <security:mimic class=".Folder." />
+    <require like_class=".Folder." />
   </content>
 
   <!-- Loaded Folder Directives -->
@@ -42,36 +39,40 @@
         title="Loaded Folder"
         description="A Folder having all the goodies." />
 
-    <security:require
-        permission="Zope.View" />
-    <security:allow
-        interface="Zope.ComponentArchitecture.IServiceManagerContainer.IReadServiceManagerContainer" 
+    <allow
+        interface="
+Zope.ComponentArchitecture.IServiceManagerContainer.IReadServiceManagerContainer
+         " 
         />
-    <security:require
+    <require
         permission="Zope.ManageServices"
-        interface="Zope.ComponentArchitecture.IServiceManagerContainer.IWriteServiceManagerContainer" 
+        interface="
+Zope.ComponentArchitecture.IServiceManagerContainer.IWriteServiceManagerContainer
+        " 
         />
-    <security:require
+    <require
         permission="Zope.View"
         interface="Zope.App.OFS.Container.IContainer.IReadContainer"
         />
-    <security:require
+    <require
         permission="Zope.ManageContent"
         interface="Zope.App.OFS.Container.IContainer.IWriteContainer"
         />
-    <security:require
+    <require
         permission="Zope.View"
-        interface="Zope.App.OFS.Container.IOrderedContainer.IReadOrderedContainer"
+        interface="
+               Zope.App.OFS.Container.IOrderedContainer.IReadOrderedContainer"
          />
-    <security:require
+    <require
         permission="Zope.ManageContent"
-        interface="Zope.App.OFS.Container.IOrderedContainer.IWriteOrderedContainer"
+        interface="
+        Zope.App.OFS.Container.IOrderedContainer.IWriteOrderedContainer"
         />
-    <security:require
+    <require
         permission="Zope.View"
         interface="Zope.App.OFS.Container.IContainerLimit.IReadContainerLimit"
         />
-    <security:require
+    <require
         permission="Zope.ManageContent"
         interface="Zope.App.OFS.Container.IContainerLimit.IWriteContainerLimit"
         />