equal
deleted
inserted
replaced
22 super(EmailAddressPrimaryView, self).cell_call(row, col) |
22 super(EmailAddressPrimaryView, self).cell_call(row, col) |
23 |
23 |
24 def render_entity_attributes(self, entity): |
24 def render_entity_attributes(self, entity): |
25 self.w(u'<h3>') |
25 self.w(u'<h3>') |
26 entity.view('oneline', w=self.w) |
26 entity.view('oneline', w=self.w) |
27 if not entity.canonical: |
27 if entity.prefered: |
28 canonemailaddr = entity.canonical_form() |
28 self.w(u' (<i>%s</i>)' % entity.prefered.view('oneline')) |
29 if canonemailaddr: |
29 self.w(u'</h3>') |
30 self.w(u' (<i>%s</i>)' % canonemailaddr.view('oneline')) |
|
31 self.w(u'</h3>') |
|
32 elif entity.identical_to: |
|
33 self.w(u'</h3>') |
|
34 identicaladdr = [e.view('oneline') for e in entity.identical_to] |
|
35 self.field('identical_to', ', '.join(identicaladdr)) |
|
36 else: |
|
37 self.w(u'</h3>') |
|
38 try: |
30 try: |
39 persons = entity.reverse_primary_email |
31 persons = entity.reverse_primary_email |
40 except Unauthorized: |
32 except Unauthorized: |
41 persons = [] |
33 persons = [] |
42 if persons: |
34 if persons: |