web/views/wfentities.py
changeset 1808 aa09e20dd8c0
parent 1693 49075f57cf2c
parent 1807 6d541c610165
child 1810 e95e876be17c
equal deleted inserted replaced
1693:49075f57cf2c 1808:aa09e20dd8c0
     1 """html view for workflow related entities
       
     2 
       
     3 :organization: Logilab
       
     4 :copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
       
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
       
     6 """
       
     7 __docformat__ = "restructuredtext en"
       
     8 
       
     9 from cubicweb.common.view import EntityView
       
    10 
       
    11 class CellView(EntityView):
       
    12     id = 'cell'
       
    13     accepts = ('TrInfo',)
       
    14     def cell_call(self, row, col, cellvid=None):
       
    15         entity = self.entity(row, col)
       
    16         self.w(entity.printable_value('comment'))