[secondary] Fix results-view
authorVincent Michel <vincent.michel@logilab.fr>
Fri, 18 Oct 2013 16:27:07 +0000
changeset 398 da90998dea18
parent 396 3990d3a0e1a8
child 399 03a40a4cc6ab
[secondary] Fix results-view
views/secondary.py
--- a/views/secondary.py	Fri Oct 18 14:01:14 2013 +0000
+++ b/views/secondary.py	Fri Oct 18 16:27:07 2013 +0000
@@ -56,7 +56,7 @@
 ###############################################################################
 ### RESOURCES VIEW ############################################################
 ###############################################################################
-class BrainomicsResultFile(ListView):
+class BrainomicsResultFile(EntityView):
     __regid__ = 'results-view'
     __select__ = EntityView.__select__ & is_instance('Questionnaire', 'QuestionnaireRun',
                                                      'GenomicMeasure', 'Scan')
@@ -64,13 +64,11 @@
     def entity_call(self, entity):
         # Display results file
         w = self.w
-        w(u'<div class="span3">')
         rset = self._cw.execute('Any F WHERE X results_file F, X eid %(e)s',
                                 {'e': entity.eid})
         if rset:
             w(u'<h3>%s</h3>' % self._cw._('Results file'))
             self.wview('list', rset=rset)
-        w(u'</div>')
 
 
 def registration_callback(vreg):