[views] age of Subject is obsolete
authorDimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Tue, 23 Jul 2013 07:56:32 +0200
changeset 360 2b09541ca6a6
parent 359 c1deb7cf862c
child 361 9cf4d92ed6ee
[views] age of Subject is obsolete
views/outofcontext.py
views/primary.py
--- a/views/outofcontext.py	Mon Jul 22 16:04:53 2013 +0200
+++ b/views/outofcontext.py	Tue Jul 23 07:56:32 2013 +0200
@@ -35,8 +35,6 @@
         self.w(u'<div class="span8">')
         self.w(u'<h4><a href="%s">%s</a></h4>' % (entity.absolute_url(), entity.dc_title()))
         self.w(u'<div class="row-fluid">')
-        self.w(u'Age <em>%s</em>' % entity.age)
-        self.w(u' - ')
         self.w(u'Handedness <em>%s</em>' % entity.handedness)
         self.w(u'</div>')
         self.w(u'</div>')
--- a/views/primary.py	Mon Jul 22 16:04:53 2013 +0200
+++ b/views/primary.py	Tue Jul 23 07:56:32 2013 +0200
@@ -112,8 +112,7 @@
     __select__ = BrainomicsPrimaryView.__select__ & is_instance('Subject')
 
     def iterate_attributes(self, entity):
-        return [(self._cw._('Age'), entity.age),
-                (self._cw._('Handedness'), entity.handedness),
+        return [(self._cw._('Handedness'), entity.handedness),
                 (self._cw._('Gender'), entity.gender),]
 
     def display_additional_header(self, entity):