[primary view] fix name error on dispctrl w/ pre 3.5 box definition stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 May 2010 08:45:25 +0200
branchstable
changeset 5560 b9a8e7109370
parent 5554 9b7bdbfee68b
child 5577 4e3ca117c275
[primary view] fix name error on dispctrl w/ pre 3.5 box definition
web/views/primary.py
--- a/web/views/primary.py	Thu May 20 20:45:28 2010 +0200
+++ b/web/views/primary.py	Fri May 21 08:45:25 2010 +0200
@@ -176,7 +176,8 @@
                     warn('[3.5] box views should now be defined as a 4-uple (label, rset, vid, dispctrl), '
                          'please update %s' % self.__class__.__name__,
                          DeprecationWarning)
-                    label, rset, vid  = box
+                    label, rset, vid = box
+                    dispctrl = {}
                 self.w(u'<div class="sideBox">')
                 self.wview(vid, rset, title=label, initargs={'dispctrl': dispctrl})
                 self.w(u'</div>')