cleanup stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 15 Sep 2010 17:21:05 +0200
branchstable
changeset 6250 76c32e4a9b0f
parent 6249 1729f53b3e42
child 6251 afc757568492
cleanup
web/views/basecontrollers.py
--- a/web/views/basecontrollers.py	Wed Sep 15 17:20:56 2010 +0200
+++ b/web/views/basecontrollers.py	Wed Sep 15 17:21:05 2010 +0200
@@ -411,8 +411,6 @@
             rset = self._exec(rql)
         else:
             rset = None
-        extraargs = optional_kwargs(extraargs)
-        extraargs.setdefault('paginate', False)
         # XXX while it sounds good, addition of the try/except below cause pb:
         # when filtering using facets return an empty rset, the edition box
         # isn't anymore selectable, as expected. The pb is that with the
@@ -422,7 +420,7 @@
         # error is expected and should'nt be reported.
         #try:
         comp = self._cw.vreg[registry].select(compid, self._cw, rset=rset,
-                                              **extraargs)
+                                              **optional_kwargs(extraargs))
         #except NoSelectableObject:
         #    raise RemoteCallFailed('unselectable')
         return self._call_view(comp, **extraargs)