[primary] Fix Assessment primary view, according to protocol, see #3296115
authorVincent Michel <vincent.michel@logilab.fr>
Tue, 26 Nov 2013 08:15:09 +0000
changeset 508 55d2eb2b523b
parent 506 b6a774e5d4b6
child 509 dd09f6bfab2c
[primary] Fix Assessment primary view, according to protocol, see #3296115
views/primary.py
--- a/views/primary.py	Mon Nov 25 14:00:17 2013 +0000
+++ b/views/primary.py	Tue Nov 26 08:15:09 2013 +0000
@@ -296,7 +296,7 @@
         subject = entity.reverse_concerned_by[0]
         subject = u'<a href="%s">%s</a>' % (subject.absolute_url(), subject.dc_title())
         return [(self._cw._('Identifier'), entity.identifier),
-                (self._cw._('Protocol'), entity.protocol),
+                (self._cw._('Protocol'), entity.protocols),
                 (self._cw._('Date'), entity.datetime),
                 (self._cw._('Subject'), subject),
                 (self._cw._('Study'), entity.related_study[0].view('outofcontext')),
@@ -319,6 +319,8 @@
             data = self._build_data(data, rql, self._cw._('Used %(s)s' % {'s': m}))
         return data
 
+    def display_main_col(self, entity):
+        pass
 
 ###############################################################################
 ### SCOREDEF ##################################################################