[views] Now, the questionnary run link to the questions, as they display the answers
authorVincent Michel <vincent.michel@logilab.fr>
Wed, 17 Jul 2013 18:01:10 +0200
changeset 332 728dd6457310
parent 331 ac7e00cf9a04
child 333 99987aa7b155
[views] Now, the questionnary run link to the questions, as they display the answers
views/primary.py
--- a/views/primary.py	Thu Jul 18 07:42:20 2013 +0200
+++ b/views/primary.py	Wed Jul 17 18:01:10 2013 +0200
@@ -462,11 +462,7 @@
         w(u'</tr>')
         for ind, question in enumerate(rset.entities()):
             w(u'<tr>')
-            url = self._cw.build_url(rql='Any A, I, AV, AD WHERE A is Answer, A question Q, Q eid %s, '
-                                     'A value AV, A datetime AD, A questionnaire_run AQ, '
-                                     'AQ concerns S, S identifier I' % question.eid,
-                                     vid='table',__force_display=True)
-            w(u'<th><a href="%s">%s</a></th>' % (url, question.identifier))
+            w(u'<th><a href="%s">%s</a></th>' % (question.absolute_url(), question.identifier))
             w(u'<th>%s</th>' % question.text)
             answer = rset.get_entity(ind, 1)
             w(u'<th>%s</th>' % answer.computed_value)