[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser - configure.zcml:1.6 SQLScriptEdit.py:NONE edit.pt:NONE
Jim Fulton
jim@zope.com
Mon, 11 Nov 2002 16:10:36 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv22839/Views/Browser
Modified Files:
configure.zcml
Removed Files:
SQLScriptEdit.py edit.pt
Log Message:
Changed the ConnectionName field type to provide allowed_values rather
than items. Changed the editing view to use an automatically generated
view.
=== Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/configure.zcml 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/configure.zcml:1.5 Wed Oct 9 09:10:28 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/configure.zcml Mon Nov 11 16:10:35 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.SQLScript">
<!-- SQL Script View Directives -->
@@ -18,18 +19,16 @@
template="Views/Browser/testResults.pt" />
</browser:view>
-<browser:view
- for=".ISQLScript."
- permission="Zope.View"
- factory=".Views.Browser.SQLScriptEdit.">
- <browser:page name="editForm.html" attribute="form" />
- <browser:page name="edit.html" attribute="action" />
-
-</browser:view>
+<form:edit
+ schema = ".ISQLScript."
+ name = "edit.html"
+ label = "Edit an SQL script"
+ permission = "Zope.ManageContent"
+ />
<browser:menuItems menu="zmi_views" for=".ISQLScript.">
- <browser:menuItem title="Edit" action="editForm.html"/>
+ <browser:menuItem title="Edit" action="edit.html"/>
<browser:menuItem title="Test" action="testForm.html"/>
<browser:menuItem title="Cache" action="Caching.html"/>
</browser:menuItems>
=== Removed File Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/SQLScriptEdit.py ===
=== Removed File Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/edit.pt ===