[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser - SQLScriptEdit.py:1.6

Erik ersab@codeworks.lt
Thu, 8 Aug 2002 11:06:00 -0400


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

Modified Files:
	SQLScriptEdit.py 
Log Message:
Ported SQL caching support from Zope 2.



=== Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/SQLScriptEdit.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/SQLScriptEdit.py:1.5	Thu Aug  8 07:05:54 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/SQLScript/Views/Browser/SQLScriptEdit.py	Thu Aug  8 11:05:59 2002
@@ -18,6 +18,7 @@
 from Zope.App.Forms.Views.Browser import Widget
 from Zope.App.Forms.Widget import CustomWidget
 from Zope.App.Forms.Views.Browser.FormView import FormView
+from Schema.Converter import StrToIntConverter
 
 class SQLScriptEdit(FormView):
     form = ViewPageTemplateFile('edit.pt')
@@ -26,8 +27,13 @@
                       'arguments': CustomWidget(Widget.TextAreaWidget,
                                                 height=3, width=40),
                       'source': CustomWidget(Widget.TextAreaWidget,
-                                             height=10, width=80)}
-    fields_order = ('connectionName', 'arguments', 'source')
+                                             height=10, width=80),
+                      'maxCache': CustomWidget(Widget.TextWidget,
+                                         converter=StrToIntConverter()),
+                      'cacheTime': CustomWidget(Widget.TextWidget,
+                                         converter=StrToIntConverter()) }
+    fields_order = ('connectionName', 'arguments', 'source',
+                    'maxCache', 'cacheTime')
 
     def getAllConnections(self):
         parent = getParent(self.context)