equal
deleted
inserted
replaced
8 |
8 |
9 from logilab.mtconverter import html_escape |
9 from logilab.mtconverter import html_escape |
10 |
10 |
11 from cubicweb.selectors import implements |
11 from cubicweb.selectors import implements |
12 from cubicweb.common import Unauthorized |
12 from cubicweb.common import Unauthorized |
13 from cubicweb.web.views import baseviews |
13 from cubicweb.web.views import baseviews, primary |
14 |
14 |
15 class EmailAddressPrimaryView(baseviews.PrimaryView): |
15 class EmailAddressPrimaryView(primary.PrimaryView): |
16 __select__ = implements('EmailAddress') |
16 __select__ = implements('EmailAddress') |
17 |
17 |
18 def cell_call(self, row, col, skipeids=None): |
18 def cell_call(self, row, col, skipeids=None): |
19 self.skipeids = skipeids |
19 self.skipeids = skipeids |
20 super(EmailAddressPrimaryView, self).cell_call(row, col) |
20 super(EmailAddressPrimaryView, self).cell_call(row, col) |
61 |
61 |
62 class EmailAddressShortPrimaryView(EmailAddressPrimaryView): |
62 class EmailAddressShortPrimaryView(EmailAddressPrimaryView): |
63 __select__ = implements('EmailAddress') |
63 __select__ = implements('EmailAddress') |
64 id = 'shortprimary' |
64 id = 'shortprimary' |
65 title = None # hidden view |
65 title = None # hidden view |
66 |
66 |
67 def render_entity_attributes(self, entity): |
67 def render_entity_attributes(self, entity): |
68 self.w(u'<h5>') |
68 self.w(u'<h5>') |
69 entity.view('oneline', w=self.w) |
69 entity.view('oneline', w=self.w) |
70 self.w(u'</h5>') |
70 self.w(u'</h5>') |
71 |
71 |