[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser - configure.zcml:1.10 ZPTPageEdit.py:NONE edit.pt:NONE
Jim Fulton
jim@zope.com
Mon, 11 Nov 2002 16:11:17 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv23022/Views/Browser
Modified Files:
configure.zcml
Removed Files:
ZPTPageEdit.py edit.pt
Log Message:
Changed to use an automatically generated edit view.
=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/configure.zcml 1.9 => 1.10 ===
--- Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/configure.zcml:1.9 Tue Oct 1 08:49:08 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/configure.zcml Mon Nov 11 16:11:16 2002
@@ -1,6 +1,7 @@
<zopeConfigure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns:form="http://namespaces.zope.org/form"
package="Zope.App.OFS.Content.ZPTPage">
<!-- ZPT Page View Directives -->
@@ -18,20 +19,17 @@
<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="form" />
- <browser:page name="edit.html" attribute="action" />
-
-</browser:view>
+<form:edit
+ schema = ".ZPTPage.IZPTPage."
+ name = "edit.html"
+ label = "Edit a ZPT page"
+ permission = "Zope.ManageContent"
+ />
<!-- tabs for ZPT Page -->
<browser:menuItems menu="zmi_views" for=".ZPTPage.IZPTPage.">
- <browser:menuItem title="Edit" action="editForm.html"/>
+ <browser:menuItem title="Edit" action="edit.html"/>
<browser:menuItem title="Role Permissions" action="AllRolePermissions.html"/>
<browser:menuItem title="View" action="."/>
</browser:menuItems>
=== Removed File Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/ZPTPageEdit.py ===
=== Removed File Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/Views/Browser/edit.pt ===