view.py
branchtls-sprint
changeset 1723 30c3a713ab61
parent 1511 514e4e53a3c7
child 1756 42d87dedd631
--- a/view.py	Mon May 11 11:30:42 2009 +0200
+++ b/view.py	Mon May 11 11:55:10 2009 +0200
@@ -125,7 +125,7 @@
 
     # main view interface #####################################################
 
-    def dispatch(self, w=None, **context):
+    def render(self, w=None, **context):
         """called to render a view object for a result set.
 
         This method is a dispatched to an actual method selected
@@ -150,6 +150,8 @@
         if stream is not None:
             return self._stream.getvalue()
 
+    dispatch = obsolete('.dispatch is deprecated, use .render')(render)
+
     # should default .call() method add a <div classs="section"> around each
     # rset item
     add_div_section = True