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

Stephan Richter srichter@cbu.edu
Wed, 10 Jul 2002 23:51:32 -0400


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

Modified Files:
	configure.zcml 
Log Message:
- Added descriptions to last Services

- Removed old-style menu entries

- Started more aggressivly to convert ZCML to Steve's style suggestions


=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/configure.zcml 1.9 => 1.10 ===
 <zopeConfigure
-   xmlns='http://namespaces.zope.org/zope'
-   xmlns:browser='http://namespaces.zope.org/browser'
-   package="Zope.App.OFS.Content.Folder"
->
-
-  <!-- Folder View Directives -->
-
-   <browser:view
-       permission="Zope.ManageContent" 
-       for=".Folder.IFolder"
-       name="create"  
-       factory=".Views.Browser.FolderAdding."
-       >
-       <browser:page name="index.html"
-       template="Views/Browser/add.pt" />
-       <browser:page name="action.html" attribute="action" />
-   </browser:view>
-
-  <browser:icon name="zmi_icon" for=".Folder.IFolder."
-                file="Folder_icon.gif" />
-
-  <browser:menuItems menu="zmi_views" for=".Folder.IFolder.">
-    <browser:menuItem title="Contents" action="@@index.html"/>
-    <browser:menuItem title="Role Permissions" 
-             action="@@AllRolePermissions.html"/>
-    <browser:menuItem title="Principal Roles" 
-             action="@@PrincipalRoles.html"/>
-  </browser:menuItems>
-
-  <browser:menuItem menu="add_content"
-                    for="Zope.App.OFS.Container.IAdding."
-                    title="Folder" action="Folder"
-                    description="A simple Folder."
-                    />
-
-  <browser:defaultView
-       for=".Folder.IFolder." 
-       name="index.html" />
-
-  <browser:view
-      for=".Folder.IFolder."
-      permission="Zope.ManageContent" 
-      factory=".Views.Browser.FolderContents.">
-
-    <browser:page name="index.html"
-                  attribute="index"
-                  />
-    <browser:page name="addServiceManager.html"
-                  attribute="addServiceManager"
-                  />
-    <browser:page name="removeObjects.html"
-                  attribute="removeObjects"
-                  />
-  </browser:view>
-
-  <!-- Loaded Folder View Directives -->
-     
-  <browser:defaultView
-       for=".LoadedFolder.ILoadedFolder."
-       name="index.html" />
-
-  <browser:view
-      for=".LoadedFolder.ILoadedFolder."
-      permission="Zope.View" 
-      factory=".Views.Browser.LoadedFolderContents.">
-
-    <browser:page name="index.html"
-                  attribute="index"
-                  />
-  </browser:view>
-
-  <browser:view
-      for="Zope.App.OFS.Container.IContainerLimit."
-      permission="Zope.ManageContent" 
-      factory=".Views.Browser.FolderLimitEdit.">
-
-    <browser:page name="FolderLimitEditForm.html"
-                  attribute="index"
-                  />
-    <browser:page name="SetFolderLimit.html"
-                  attribute="action"
-                  />
-  </browser:view>
-
-  <browser:view name="LimitFieldView"
-      for="Zope.App.OFS.Container.IContainerLimit."
-      factory=".LoadedFolderFields.LimitField. 
-               Zope.App.Formulator.Widgets.Browser.TextWidget." />
-
-  <browser:menuItems menu="zmi_views"
-                     for="Zope.App.OFS.Container.IContainerLimit.">
-    <browser:menuItem title="Limit" action="@@FolderLimitEditForm.html"/>
-  </browser:menuItems>
-
-  <!--
-  we already get these from IFolder above
-  
-  <browser:menuItems menu="zmi_views" for=".LoadedFolder.ILoadedFolder.">
-    <browser:menuItem title="Contents" action="@@index.html"/>
-    <browser:menuItem title="Role Permissions" 
-             action="@@AllRolePermissions.html"/>
-  </browser:menuItems>
-  
-  -->
-
-  <browser:menuItem menu="add_content"
-                    for="Zope.App.OFS.Container.IAdding."
-                    title="Loaded Folder" action="LoadedFolder"
-                    description="A Folder having all the goodies."
-                    />
+   xmlns="http://namespaces.zope.org/zope"
+   xmlns:browser="http://namespaces.zope.org/browser"
+   package="Zope.App.OFS.Content.Folder">
+
+<!-- Folder View Directives -->
+
+<browser:defaultView for=".Folder.IFolder." name="index.html" />
+
+<browser:view
+    permission="Zope.ManageContent" 
+    for=".Folder.IFolder"
+    name="create"  
+    factory=".Views.Browser.FolderAdding.">
+
+  <browser:page name="index.html" template="Views/Browser/add.pt" />
+  <browser:page name="action.html" attribute="action" />
+
+</browser:view>
+
+<browser:icon name="zmi_icon" for=".Folder.IFolder."
+    file="Folder_icon.gif" />
+
+<browser:menuItems menu="zmi_views" for=".Folder.IFolder.">
+  <browser:menuItem title="Contents" action="@@index.html"/>
+  <browser:menuItem title="Role Permissions" 
+      action="@@AllRolePermissions.html"/>
+  <browser:menuItem title="Principal Roles" 
+      action="@@PrincipalRoles.html"/>
+</browser:menuItems>
+
+<browser:menuItem menu="add_content"
+    for="Zope.App.OFS.Container.IAdding."
+    title="Folder" action="Folder"
+    description="A simple Folder." />
+
+<browser:view
+    for=".Folder.IFolder."
+    permission="Zope.ManageContent" 
+    factory=".Views.Browser.FolderContents.">
+
+  <browser:page name="index.html" attribute="index" />
+  <browser:page name="addServiceManager.html" attribute="addServiceManager" />
+  <browser:page name="removeObjects.html" attribute="removeObjects" />
+
+</browser:view>
+
+<!-- Loaded Folder View Directives -->
+   
+<browser:defaultView for=".LoadedFolder.ILoadedFolder." name="index.html" />
+
+<browser:view
+    for=".LoadedFolder.ILoadedFolder."
+    permission="Zope.View" 
+    factory=".Views.Browser.LoadedFolderContents.">
+
+  <browser:page name="index.html" attribute="index" />
+
+</browser:view>
+
+<browser:view
+    for="Zope.App.OFS.Container.IContainerLimit."
+    permission="Zope.ManageContent" 
+    factory=".Views.Browser.FolderLimitEdit.">
+
+  <browser:page name="FolderLimitEditForm.html" attribute="index" />
+  <browser:page name="SetFolderLimit.html" attribute="action" />
+
+</browser:view>
+
+<browser:view name="LimitFieldView"
+    for="Zope.App.OFS.Container.IContainerLimit."
+    factory=".LoadedFolderFields.LimitField. 
+             Zope.App.Formulator.Widgets.Browser.TextWidget." />
+
+<browser:menuItems menu="zmi_views"
+    for="Zope.App.OFS.Container.IContainerLimit.">
+  <browser:menuItem title="Limit" action="@@FolderLimitEditForm.html"/>
+</browser:menuItems>
+
+<browser:menuItem menu="add_content"
+  for="Zope.App.OFS.Container.IAdding."
+  title="Loaded Folder" action="LoadedFolder"
+  description="A Folder having all the goodies." />
 
 </zopeConfigure>