changeset 3906:bef1e62eebe5

DataBrowserWidget: make API conform to base class
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 28 Jul 2008 21:26:58 +0200
parents 0248e23277ef
children 1008dd34b71c
files MoinMoin/widget/browser.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/widget/browser.py	Mon Jul 28 20:53:35 2008 +0200
+++ b/MoinMoin/widget/browser.py	Mon Jul 28 21:26:58 2008 +0200
@@ -93,7 +93,7 @@
         common[2] = self._makeoption(self._notempty, value == self.__notempty, self.__notempty)
         return '\n'.join(common + result)
 
-    def format(self, formatter=None):
+    def _format(self, formatter=None):
         fmt = formatter or self.request.formatter
 
         result = []
@@ -187,3 +187,8 @@
         result.append(fmt.rawHTML('</form>'))
         return ''.join(result)
 
+    format = _format # DEPRECATED, use render()
+
+    render = _format # Note: in moin <= 1.7.1 render() used request.write(), this was wrong!
+                     # Now it just returns the result, as the other widgets do.
+