--- 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