[outofcontext] Move Subject ooc view to medical exp and remove outofcontext file
authorDimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
Thu, 01 Aug 2013 13:38:55 +0200
changeset 362 51ff10a16b13
parent 361 9cf4d92ed6ee
child 363 829c677bba09
[outofcontext] Move Subject ooc view to medical exp and remove outofcontext file
views/outofcontext.py
--- a/views/outofcontext.py	Tue Jul 23 08:05:26 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-# -*- coding: utf-8 -*-
-# copyright 2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
-# copyright 2013 CEA (Saclay, FRANCE), all rights reserved.
-# contact http://www.logilab.fr -- mailto:contact@logilab.fr
-#
-# This program is free software: you can redistribute it and/or modify it under
-# the terms of the GNU Lesser General Public License as published by the Free
-# Software Foundation, either version 2.1 of the License, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Lesser General Public License along
-# with this program. If not, see <http://www.gnu.org/licenses/>.
-
-from cubicweb.view import AnyRsetView, EntityView
-from cubicweb.selectors import is_instance
-
-###############################################################################
-### VIEWS #####################################################################
-###############################################################################
-class SubjectOutOfContextView(EntityView):
-    __regid__ = 'outofcontext'
-    __select__ = EntityView.__select__ & is_instance('Subject')
-
-    def cell_call(self, row, col):
-        entity = self.cw_rset.get_entity(row, col)
-        self.w(u'<div class="thumbnail row-fluid">')
-        self.w(u'<div class="span2">')
-        self.w(u'<h1>%s</h1>' % entity.symbol)
-        self.w(u'</div>')
-        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'Handedness <em>%s</em>' % entity.handedness)
-        self.w(u'</div>')
-        self.w(u'</div>')
-        self.w(u'</div>')