[req] avoid getting w in cw_extra_kwargs when calling .view stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 12 May 2010 12:16:41 +0200
branchstable
changeset 5516 232d13fc3e86
parent 5515 513af9be9e37
child 5517 4b5577515722
[req] avoid getting w in cw_extra_kwargs when calling .view
req.py
--- a/req.py	Wed May 12 09:29:53 2010 +0200
+++ b/req.py	Wed May 12 12:16:41 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