[views] Consider the complete Genetic data as GenomicMeasure and GenericTestRun with the type "genomics"
authorVincent Michel <vincent.michel@logilab.fr>
Thu, 27 Jun 2013 18:52:41 +0200
changeset 159 9f0aa4a7caed
parent 158 ed68e70ae6d2
child 160 6452d3f56a14
[views] Consider the complete Genetic data as GenomicMeasure and GenericTestRun with the type "genomics"
views/startup.py
--- a/views/startup.py	Thu Jun 27 18:50:52 2013 +0200
+++ b/views/startup.py	Thu Jun 27 18:52:41 2013 +0200
@@ -36,7 +36,8 @@
         self.w(u'<div class="span3"><h2>Images</h2><a href="%s"><img width="200" src="%s"/></a></div>'
                % (href, url))
         url = self._cw.data_url('images/genetics.png')
-        href = self._cw.build_url(rql='Any X WHERE X is GenomicMeasure')
+        href = self._cw.build_url(rql='(Any X WHERE X is GenomicMeasure) '
+                                  'UNION (Any X WHERE X is GenericTestRun, X instance_of T, T type "genomics")')
         self.w(u'<div class="span3"><h2>Genetics</h2><a href="%s"><img width="200" src="%s"/></a></div>'
                % (href, url))
         url = self._cw.data_url('images/questionnaire.png')