# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1272290292 -7200
#      Mon Apr 26 15:58:12 2010 +0200
# Branch stable
# Node ID 4a103934e8352f41a82f42e9b1184d30a64aab5b
# Parent  d434582788c695a495d9566c58f003328610fe7f
avoid crash with cw < 3.8

diff --git a/views.py b/views.py
--- a/views.py
+++ b/views.py
@@ -307,6 +307,7 @@
             self.w(u'<div class="section">')
             self.w(u'<h4>%s</h4>\n' % self._cw._('Latest comments').capitalize())
             self.wview('table', rset,
+                       displaycols=range(3), # XXX may be removed with cw >= 3.8
                        headers=[_('about'), _('on date'),
                                 _('comment content')],
                        cellvids={0: 'commentroot',