[views/startup] Pre-fetch relevant attributes into the rsets
authorVladimir Popescu <vladimir.popescu@logilab.fr>
Tue, 02 Jul 2013 18:06:22 +0200
changeset 187 9301ecd347f7
parent 184 b9b6788b9123
child 188 9ddc873f7768
[views/startup] Pre-fetch relevant attributes into the rsets
views/startup.py
--- a/views/startup.py	Wed Jul 03 16:41:57 2013 +0200
+++ b/views/startup.py	Tue Jul 02 18:06:22 2013 +0200
@@ -32,7 +32,9 @@
         self.w(u'<div class="span3"><h2>Subjects</h2><a href="%s"><img width="200" src="%s"/></a></div>'
                % (href, url))
         url = self._cw.data_url('images/images.png')
-        href = self._cw.build_url(rql='Any X WHERE X is Scan')
+        href = self._cw.build_url(rql=('Any X, XT, XL, XI, XF, XD WHERE X is Scan, '
+                                       'X type XT, X label XL, X identifier XI, '
+                                       'X format XF, X description XD'))
         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')
@@ -41,7 +43,7 @@
         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')
-        href = self._cw.build_url(rql='Any X WHERE X is QuestionnaireRun')
+        href = self._cw.build_url(rql='Any X, XI, XD WHERE X is QuestionnaireRun, X identifier XI, X datetime XD')
         self.w(u'<div class="span3"><h2>Questionnaires</h2><a href="%s"><img width="200" src="%s"/></a></div>'
                % (href, url))
         self.w(u'</div>')