web/views/wfentities.py
author sylvain.thenault@logilab.fr
Wed, 18 Feb 2009 10:21:15 +0100
branchtls-sprint
changeset 762 a6f678fe7e44
parent 728 a95b284150d1
child 795 63f4f81e19f1
permissions -rw-r--r--
update some imports

"""html view for workflow related entities

:organization: Logilab
:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"

from cubicweb.selectors import implements
from cubicweb.common.view import EntityView

class CellView(EntityView):
    id = 'cell'
    __select__ = implements('TrInfo')
    
    def cell_call(self, row, col, cellvid=None):
        entity = self.entity(row, col)
        self.w(entity.printable_value('comment'))