[tabs] forward url parameters to lazy tabs views stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 10 Mar 2011 11:56:35 +0100
branchstable
changeset 7067 f239da8e7c39
parent 7066 7baf7515c3b9
child 7068 90ddf608fe2b
child 7071 db7608cb32bc
[tabs] forward url parameters to lazy tabs views If http://www.cubicweb.org/project/foo?x=12&y=13 dislays a LazyTabView, this patch forwards {x: 12, y: 13} to subsequent lazy tabs (i.e. called through ajax queries).
web/views/tabs.py
--- a/web/views/tabs.py	Wed Mar 09 18:26:43 2011 +0100
+++ b/web/views/tabs.py	Thu Mar 10 11:56:35 2011 +0100
@@ -47,7 +47,8 @@
         """ a lazy version of wview """
         w = w or self.w
         self._cw.add_js('cubicweb.lazy.js')
-        urlparams = {'vid' : vid, 'fname' : 'view'}
+        urlparams = self._cw.form.copy()
+        urlparams.update({'vid' : vid, 'fname' : 'view'})
         if rql:
             urlparams['rql'] = rql
         elif eid: