[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Folder - folder.zcml:1.1.2.11

Gary Poster garyposter@earthlink.net
Thu, 2 May 2002 13:18:19 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	folder.zcml 
Log Message:
Several interfaces divided up into readers (getters) and writers (setters), then used in the zcml for permissions.  Some small changes in the local ServiceManager to deal with the new security a bit better, hopefully.  Fixed Image enough so that you can upload one, but I'm getting a server buffer error when I try to view it.  The change to ZMIViewUtility I'm not sure of, but it made sense to me.

You can now add, edit, and view significantly more of the content since the security changes.



=== Zope3/lib/python/Zope/App/OFS/Folder/folder.zcml 1.1.2.10 => 1.1.2.11 ===
                          permission_id="Zope.View">
     <security:protect 
-              interface="Zope.ComponentArchitecture.IServiceManagerContainer." 
+              interface="Zope.ComponentArchitecture.IServiceManagerContainer.IReadServiceManagerContainer" 
+  	      permission_id="Zope.Public" />
+    <security:protect 
+              interface="Zope.ComponentArchitecture.IServiceManagerContainer.IWriteServiceManagerContainer" 
   	      permission_id="Zope.ManageServices" />
     <security:protect
               interface="Zope.App.OFS.Container.IContainer.IReadContainer"
@@ -45,6 +48,30 @@
 
   <security:protectClass name=".LoadedFolder."
                          permission_id="Zope.View">
+    <security:protect 
+              interface="Zope.ComponentArchitecture.IServiceManagerContainer.IReadServiceManagerContainer" 
+  	      permission_id="Zope.Public" />
+    <security:protect 
+              interface="Zope.ComponentArchitecture.IServiceManagerContainer.IWriteServiceManagerContainer" 
+  	      permission_id="Zope.ManageServices" />
+    <security:protect
+              interface="Zope.App.OFS.Container.IContainer.IReadContainer"
+              permission_id="Zope.View" />
+    <security:protect
+              interface="Zope.App.OFS.Container.IContainer.IWriteContainer"
+              permission_id="Zope.ManageContent" />
+    <security:protect
+              interface="Zope.App.OFS.Container.IOrderedContainer.IReadOrderedContainer"
+              permission_id="Zope.View" />
+    <security:protect
+              interface="Zope.App.OFS.Container.IOrderedContainer.IWriteOrderedContainer"
+              permission_id="Zope.ManageContent" />
+    <security:protect
+              interface="Zope.App.OFS.Container.IContainerLimit.IReadContainerLimit"
+              permission_id="Zope.View" />
+    <security:protect
+              interface="Zope.App.OFS.Container.IContainerLimit.IWriteContainerLimit"
+              permission_id="Zope.ManageContent" />
   </security:protectClass>
 
   <zmi:tabs for="Zope.App.OFS.Container.IContainerLimit.">