# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1276180999 -7200
#      Thu Jun 10 16:43:19 2010 +0200
# Node ID d32c5dffe4b182fd15f3f267aeb67383f15b1514
# Parent  fda661b9267571b75cc876f78da6a0d52a808747
fix some 3.8 deprecation warning

diff --git a/entities.py b/entities.py
--- a/entities.py
+++ b/entities.py
@@ -82,7 +82,7 @@
         indentlevel = len(cpath) - 1
         for i, ceid in enumerate(cpath):
             comment = self._cw.execute('Any C,T,D WHERE C creation_date D, C content T, C eid %(x)s',
-                                       {'x': ceid}, 'x', build_descr=True).get_entity(0, 0)
+                                       {'x': ceid}, build_descr=True).get_entity(0, 0)
             strings.append(comment.view('fulltext', indentlevel=indentlevel-i,
                                         withauthor=i!=indentlevel).strip() + '\n')
         strings.append(u'\n%s: %s' % (self._cw._('i18n_by_author_field'),
diff --git a/test/unittest_hooks.py b/test/unittest_hooks.py
--- a/test/unittest_hooks.py
+++ b/test/unittest_hooks.py
@@ -9,8 +9,8 @@
 
     def test_notif_after_add_relation_comments(self):
         req = self.session
-        c = self.entity('Comment X', req=req)
         req.set_pool()
+        c = req.execute('Comment X').get_entity(0, 0)
         v = self.vreg['views'].select('notif_after_add_relation_comments', req,
                                       rset=c.cw_rset, row=0)
         content = v.render(row=0)
diff --git a/views.py b/views.py
--- a/views.py
+++ b/views.py
@@ -307,7 +307,6 @@
             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',