[views] Use new-style table view, closes #4881325
authorRémi Cardona <remi.cardona@logilab.fr>
Wed, 28 Jan 2015 18:55:23 +0100
changeset 1787 812fc073bd10
parent 1786 c5a5055ec854
child 1788 8c8c6baadf93
[views] Use new-style table view, closes #4881325
views/testexecution.py
--- a/views/testexecution.py	Wed Jan 28 18:54:15 2015 +0100
+++ b/views/testexecution.py	Wed Jan 28 18:55:23 2015 +0100
@@ -35,12 +35,12 @@
 
     def display_info_section(self, entity):
         rset = self._cw.execute(
-            'Any X,T,L,V ORDERBY T,L WHERE X is CheckResultInfo, '
+            'Any T,L,V ORDERBY T,L WHERE X is CheckResultInfo, '
             'X type T, X label L, X value V, X for_check AE, AE eid %(ae)s',
             {'ae': entity.eid})
         title = self._cw._('execution information')
-        self.wview('table', rset, 'null', title=title, displaycols=range(1, 4),
-                   divid='info%s'%entity.eid)
+        self.w(u'<h2>%s</h2>' % xml_escape(title))
+        self.wview('table', rset, 'null')
 
 class ChecksDescriptorMixin(object):
     def describe_execution(self, exc, changes_only=False, xml_compat=False):
@@ -213,7 +213,8 @@
                 {'te': entity.eid})
         except Unauthorized:
             return # user can't read repositories for instance
-        self.wview('table', rset, 'null', title=title, divid='vc%s'%entity.eid)
+        self.w(u'<h2>%s</h2>' % xml_escape(title))
+        self.wview('table', rset, 'null')
 
     def display_recipe(self,entity):
         self._cw.add_css('pygments.css')