req.py
changeset 5527 01a7228ab5a0
parent 5473 ee87c5352e63
parent 5516 232d13fc3e86
child 5556 9ab2b4c74baf
--- a/req.py	Tue May 11 08:29:15 2010 +0200
+++ b/req.py	Mon May 17 11:05:37 2010 +0200
@@ -289,7 +289,7 @@
     # formating methods #######################################################
 
     def view(self, __vid, rset=None, __fallback_oid=None, __registry='views',
-             initargs=None, **kwargs):
+             initargs=None, w=None, **kwargs):
         """Select object with the given id (`__oid`) then render it.  If the
         object isn't selectable, try to select fallback object if
         `__fallback_oid` is specified.
@@ -309,7 +309,7 @@
         except RegistryException:
             view =  self.vreg[__registry].select(__fallback_oid, self,
                                                  rset=rset, **initargs)
-        return view.render(**kwargs)
+        return view.render(w=w, **kwargs)
 
     def format_date(self, date, date_format=None, time=False):
         """return a string for a date time according to instance's