# HG changeset patch # User Sylvain Thénault # Date 1273659401 -7200 # Node ID 232d13fc3e8698386ed7c0f3d8491f06b3fea9fb # Parent 513af9be9e370ea65daea24558829450c2d97d6c [req] avoid getting w in cw_extra_kwargs when calling .view diff -r 513af9be9e37 -r 232d13fc3e86 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