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

Jim Fulton jim@zope.com
Mon, 24 Jun 2002 04:11:02 -0400


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

Modified Files:
	configure.zcml 
Log Message:
Undid some changes that pointed to incorrect create menus.


=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/configure.zcml 1.4 => 1.5 ===
-   xmlns='http://namespaces.zope.org/zope'
-   xmlns:browser='http://namespaces.zope.org/browser'
-   package="Zope.App.OFS.Content.ZPTPage"
->
-
-  <!-- ZPT Page View Directives -->
-
-  <browser:defaultView
-      name="index.html"
-      for=".ZPTPage.IZPTPage."
-      />
-
-  <browser:view
-      permission="Zope.View"
-      for=".ZPTPage.IZPTPage."
-      factory=".Views.Browser.ZPTPageEval.">
-      
-      <browser:page name="index.html" attribute="index" />
-  </browser:view>
-
-  <browser:view
-      permission="Zope.ManageContent"
-      for=".ZPTPage.IZPTPage."
-      factory=".Views.Browser.ZPTPageEdit." >
-
-      <browser:page name="editForm.html" attribute="index" />
-      <browser:page name="edit.html" attribute="action" />
-
-  </browser:view>
-
-  <!-- Registering all the field views for the browser -->
-
-  <browser:view
-      name="SourceFieldView"
-      for=".ZPTPage.IZPTPage."
-      factory=".ZPTPageFields.SourceField. 
-               Zope.App.Formulator.Widgets.Browser.TextAreaWidget." />
-
-  <!-- tabs for ZPT Page -->
-
-  <browser:menuItems menu="zmi_views" for=".ZPTPage.IZPTPage.">
-    <browser:menuItem title="Edit" action="editForm.html"/>
-    <browser:menuItem title="View" action="."/>
-    <!-- XXX This isn't working
-    <browser:menuItem title="Role Permissions"
-             action="AllRolePermissions.html"/>
-    -->
-  </browser:menuItems>
-
-  <browser:icon name="zmi_icon" for=".ZPTPage.IZPTPage." file="zpt.gif" />
-
+<zopeConfigure
+   xmlns='http://namespaces.zope.org/zope'
+   xmlns:browser='http://namespaces.zope.org/browser'
+   package="Zope.App.OFS.Content.ZPTPage"
+>
+
+  <!-- ZPT Page View Directives -->
+
+  <browser:defaultView
+      name="index.html"
+      for=".ZPTPage.IZPTPage."
+      />
+
+  <browser:view
+      permission="Zope.View"
+      for=".ZPTPage.IZPTPage."
+      factory=".Views.Browser.ZPTPageEval.">
+      
+      <browser:page name="index.html" attribute="index" />
+  </browser:view>
+
+  <browser:view
+      permission="Zope.ManageContent"
+      for=".ZPTPage.IZPTPage."
+      factory=".Views.Browser.ZPTPageEdit." >
+
+      <browser:page name="editForm.html" attribute="index" />
+      <browser:page name="edit.html" attribute="action" />
+
+  </browser:view>
+
+  <!-- Registering all the field views for the browser -->
+
+  <browser:view
+      name="SourceFieldView"
+      for=".ZPTPage.IZPTPage."
+      factory=".ZPTPageFields.SourceField. 
+               Zope.App.Formulator.Widgets.Browser.TextAreaWidget." />
+
+  <!-- tabs for ZPT Page -->
+
+  <browser:menuItems menu="zmi_views" for=".ZPTPage.IZPTPage.">
+    <browser:menuItem title="Edit" action="editForm.html"/>
+    <browser:menuItem title="View" action="."/>
+    <!-- XXX This isn't working
+    <browser:menuItem title="Role Permissions"
+             action="AllRolePermissions.html"/>
+    -->
+  </browser:menuItems>
+
+  <browser:icon name="zmi_icon" for=".ZPTPage.IZPTPage." file="zpt.gif" />
+
   <browser:menuItem menu="add_content"
-                    for="Zope.App.OFS.Content.Folder.IFolderAdding."
-                    title="Zope Page Template Page" action="ZPTPage"/>
-
-</zopeConfigure>
+                    for="Zope.App.OFS.Container.IAdding."
+                    title="Zope Page Template Page" action="ZPTPage"/>
+
+</zopeConfigure>