[Zope3-checkins] CVS: Zope3/src/zope/app/rotterdam -
editingwidgets.py:1.5
Garrett Smith
garrett at mojave-corp.com
Tue May 11 07:18:24 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/rotterdam
In directory cvs.zope.org:/tmp/cvs-serv20988/src/zope/app/rotterdam
Modified Files:
editingwidgets.py
Log Message:
Updates of widget implementations per browser widget framework refactor.
=== Zope3/src/zope/app/rotterdam/editingwidgets.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/rotterdam/editingwidgets.py:1.4 Sat Mar 13 20:11:39 2004
+++ Zope3/src/zope/app/rotterdam/editingwidgets.py Tue May 11 07:18:24 2004
@@ -18,10 +18,10 @@
from zope.interface import implements
from zope.app.form.interfaces import IInputWidget
-from zope.app.form.browser.widget import BrowserWidget, renderElement
+from zope.app.form.browser.widget import SimpleInputWidget, renderElement
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
-class SimpleEditingWidget(BrowserWidget):
+class SimpleEditingWidget(SimpleInputWidget):
"""Improved textarea editing, with async saving using JavaScript."""
implements(IInputWidget)
@@ -34,7 +34,7 @@
rowTemplate = ViewPageTemplateFile("simpleeditingrow.pt")
rowFragment = ViewPageTemplateFile("simpleeditingrowfragment.pt")
- def _convert(self, value):
+ def _toFieldValue(self, value):
if self.context.min_length and not value:
return None
return value
@@ -47,10 +47,10 @@
rows=self.height,
cols=self.width,
style=self.style,
- contents=self._showData(),
+ contents=self._getFormValue(),
extra=self.extra)
def contents(self):
"""Make the contents available to the template"""
- return self._showData()
+ return self._getFormData()
More information about the Zope3-Checkins
mailing list