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

Jim Fulton jim@zope.com
Thu, 20 Jun 2002 16:00:54 -0400


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

Modified Files:
	configure.zcml 
Log Message:

Gary and Jim implemented most of:
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/AddMenuProposalAndEndOfZmiNamespace

A lot of clean up is needed, including:

- Implementation additional add menus, for example for services.

- Ripping out old unused implementation.





=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/configure.zcml 1.2 => 1.3 ===
    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="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
+      for=".ZPTPage.IZPTPage."
       />
 
   <browser:view
       permission="Zope.View"
-      for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
-      factory=".ZPTPageEval.">
+      for=".ZPTPage.IZPTPage."
+      factory=".Views.Browser.ZPTPageEval.">
       
       <browser:page name="index.html" attribute="index" />
   </browser:view>
 
   <browser:view
       permission="Zope.ManageContent"
-      for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
-      factory=".ZPTPageEdit." >
+      for=".ZPTPage.IZPTPage."
+      factory=".Views.Browser.ZPTPageEdit." >
 
       <browser:page name="editForm.html" attribute="index" />
       <browser:page name="edit.html" attribute="action" />
@@ -32,8 +33,24 @@
 
   <browser:view
       name="SourceFieldView"
-      for="Zope.App.OFS.Content.ZPTPage.ZPTPage.IZPTPage."
-      factory="Zope.App.OFS.Content.ZPTPage.ZPTPageFields.SourceField. 
+      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.Container.IAdding."
+                    title="Zope Page Template Page" action="ZPTPage"/>
 
 </zopeConfigure>