[basecontroller] we should consume divid to avoid it being reused by the table view, leading to duplicated id (and hence weird rendering) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 14 Sep 2010 15:40:10 +0200
branchstable
changeset 6239 7832e47d98bc
parent 6238 2f5ebeb7665d
child 6240 fd0cbb801007
[basecontroller] we should consume divid to avoid it being reused by the table view, leading to duplicated id (and hence weird rendering)
web/views/basecontrollers.py
--- a/web/views/basecontrollers.py	Tue Sep 14 15:39:28 2010 +0200
+++ b/web/views/basecontrollers.py	Tue Sep 14 15:40:10 2010 +0200
@@ -352,6 +352,8 @@
         stream = view.set_stream()
         if paginate:
             if divid == 'pageContent':
+                # ensure divid isn't reused by the view (e.g. table view)
+                self._cw.form.pop('divid', None)
                 # mimick main template behaviour
                 stream.write(u'<div id="pageContent">')
                 vtitle = self._cw.form.get('vtitle')