author | sylvain.thenault@logilab.fr |
Tue, 17 Feb 2009 23:40:30 +0100 | |
branch | tls-sprint |
changeset 722 | 50a99184cf47 |
parent 688 | cddfbdee0eb3 |
child 728 | a95b284150d1 |
permissions | -rw-r--r-- |
0 | 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 |
||
688
cddfbdee0eb3
remove all accepts = ('Foo',) declaration and use __selectors__ = implements('Foo') instead
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
9 |
from cubicweb.selectors import implements |
0 | 10 |
from cubicweb.common.view import EntityView |
11 |
||
12 |
class CellView(EntityView): |
|
13 |
id = 'cell' |
|
688
cddfbdee0eb3
remove all accepts = ('Foo',) declaration and use __selectors__ = implements('Foo') instead
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
14 |
__selectors__ = implements('TrInfo') |
cddfbdee0eb3
remove all accepts = ('Foo',) declaration and use __selectors__ = implements('Foo') instead
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
15 |
|
0 | 16 |
def cell_call(self, row, col, cellvid=None): |
17 |
entity = self.entity(row, col) |
|
18 |
self.w(entity.printable_value('comment')) |