# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1233332693 -3600 # Node ID ad9ac2169089aefc5ba1a01fefdd158de898cbc4 # Parent 1368c80276bc3a8d487fc779e89544764d23e14a set self.rset else we're missing some stuff since TheMainTemplate instance as None as rset diff -r 1368c80276bc -r ad9ac2169089 devtools/testlib.py --- a/devtools/testlib.py Fri Jan 30 15:32:02 2009 +0100 +++ b/devtools/testlib.py Fri Jan 30 17:24:53 2009 +0100 @@ -206,7 +206,10 @@ elif template == 'main': _select_view_and_rset = TheMainTemplate._select_view_and_rset # patch TheMainTemplate.process_rql to avoid recomputing resultset - TheMainTemplate._select_view_and_rset = lambda *a, **k: (view, rset) + def __select_view_and_rset(self, view=view, rset=rset): + self.rset = rset + return view, rset + TheMainTemplate._select_view_and_rset = __select_view_and_rset try: return self._test_view(viewfunc, view, template, **kwargs) finally: