web/views/basecontrollers.py
branchtls-sprint
changeset 1723 30c3a713ab61
parent 1713 d817f23439ba
child 1736 40190717e2de
--- a/web/views/basecontrollers.py	Mon May 11 11:30:42 2009 +0200
+++ b/web/views/basecontrollers.py	Mon May 11 11:55:10 2009 +0200
@@ -312,7 +312,7 @@
             view.pagination(req, rset, view.w, not view.need_navigation)
             if divid == 'pageContent':
                 stream.write(u'<div id="contentmain">')
-        view.dispatch()
+        view.render()
         extresources = req.html_headers.getvalue(skiphead=True)
         if extresources:
             stream.write(u'<div class="ajaxHtmlHead">\n') # XXX use a widget ?
@@ -349,7 +349,7 @@
             extraargs = dict((str(key), value)
                              for key, value in extraargs.items())
         extraargs = extraargs or {}
-        return comp.dispatch(**extraargs)
+        return comp.render(**extraargs)
 
     @check_pageid
     @xhtmlize
@@ -357,7 +357,7 @@
         view = self.vreg.select_view('inline-creation', self.req, None,
                                      etype=ttype, peid=peid, rtype=rtype,
                                      role=role)
-        return view.dispatch(etype=ttype, peid=peid, rtype=rtype, role=role)
+        return view.render(etype=ttype, peid=peid, rtype=rtype, role=role)
 
     @jsonize
     def js_validate_form(self, action, names, values):