[views] Use incontext views for therapies
authorVladimir Popescu <vladimir.popescu@logilab.fr>
Tue, 03 Dec 2013 14:57:48 +0100
changeset 549 3cd1bc677939
parent 548 cfceb5c8c70e
child 550 a050c3245a7a
[views] Use incontext views for therapies
views/primary.py
--- a/views/primary.py	Mon Dec 09 08:03:20 2013 +0000
+++ b/views/primary.py	Tue Dec 03 14:57:48 2013 +0100
@@ -159,19 +159,19 @@
         scores = self._cw.execute('Any X WHERE S related_infos X, S eid %(e)s', {'e': entity.eid})
         if scores:
             self.w(u'<h3>%s</h3>' % self._cw._('Scores'))
-            self.wview('list', scores)
+            self.wview('incontext', scores)
         # Therapies
         therapies = self._cw.execute('Any X WHERE S related_therapies X, S eid %(e)s',
                                      {'e': entity.eid})
         if therapies:
             self.w(u'<h3>%s</h3>' % xml_escape(self._cw._('Therapy_plural')))
-            self.wview('list', therapies)
+            self.wview('incontext', therapies)
         # Diseases
         diseases = self._cw.execute('Any X WHERE S related_diseases X, S eid %(e)s',
                                      {'e': entity.eid})
         if diseases:
             self.w(u'<h3>%s</h3>' % xml_escape(self._cw._('Disease_plural')))
-            self.wview('list', diseases)
+            self.wview('incontext', diseases)
 
 
     def iterate_data(self, entity):