[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/DTMLPage/Views/Browser - configure.zcml:1.5 DTMLPageEdit.py:NONE edit.pt:NONE

Jim Fulton jim@zope.com
Mon, 11 Nov 2002 16:01:49 -0500


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

Modified Files:
	configure.zcml 
Removed Files:
	DTMLPageEdit.py edit.pt 
Log Message:
Changed to use automatic editing form.


=== Zope3/lib/python/Zope/App/OFS/Content/DTMLPage/Views/Browser/configure.zcml 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/OFS/Content/DTMLPage/Views/Browser/configure.zcml:1.4	Fri Jul 19 09:12:31 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/DTMLPage/Views/Browser/configure.zcml	Mon Nov 11 16:01:49 2002
@@ -1,7 +1,9 @@
 <zopeConfigure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
-   package="Zope.App.OFS.Content.DTMLPage">
+   xmlns:form="http://namespaces.zope.org/form"
+   package="Zope.App.OFS.Content.DTMLPage"
+   >
 
 <!-- DTML Page View Directives -->
 
@@ -17,20 +19,18 @@
   <browser:page name="index.html" attribute="index" />
 </browser:view>
 
-<browser:view
-    permission="Zope.ManageContent"
-    for=".DTMLPage.IDTMLPage."
-    factory=".Views.Browser.DTMLPageEdit." >
 
-  <browser:page name="editForm.html" attribute="form" />
-  <browser:page name="edit.html" attribute="action" />
-
-</browser:view>
+<form:edit
+    schema = ".DTMLPage.IDTMLPage."
+    name = "edit.html"
+    label = "Edit a DTML page"
+    permission = "Zope.ManageContent"
+    />
 
 <!-- tabs for DTML Page -->
 
 <browser:menuItems menu="zmi_views" for=".DTMLPage.IDTMLPage.">
-  <browser:menuItem title="Edit" action="editForm.html"/>
+  <browser:menuItem title="Edit" action="edit.html"/>
   <browser:menuItem title="View" action="."/>
   <browser:menuItem title="Role Permissions"
            action="AllRolePermissions.html"/>

=== Removed File Zope3/lib/python/Zope/App/OFS/Content/DTMLPage/Views/Browser/DTMLPageEdit.py ===

=== Removed File Zope3/lib/python/Zope/App/OFS/Content/DTMLPage/Views/Browser/edit.pt ===