Commit c39856ba authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

update, d-t-w

parent 7d9c2693cfc4
"""entity classes for optional person entities
:organization: Logilab
:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
from cubicweb.common.mixins import EmailableMixIn
from cubicweb.mixins import EmailableMixIn
from cubicweb.entities import AnyEntity, fetch_config
......
"""Specific views for person entities
:organization: Logilab
:copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:copyright: 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"
......@@ -39,15 +39,15 @@ class PersonPrimaryView(primary.PrimaryView):
if getattr(entity, 'postal_address', None):
self.w(u"<table>")
for postaladdress in entity.postal_address:
self.w(u'<tr><th class="labelCol">%s</th><td>%s</td></tr>' %
self.w(u'<tr><th class="labelCol">%s</th><td>%s</td></tr>' %
(display_name(self._cw, 'PostalAddress'),
postaladdress.view('incontext')) )
self.w(u"</table>")
if getattr(entity, 'im_address', None):
self.w(u"<table>")
for imaddress in entity.im_address:
self.w(u'<tr><th class="labelCol">%s</th><td>%s</td></tr>' %
self.w(u'<tr><th class="labelCol">%s</th><td>%s</td></tr>' %
(display_name(self._cw, 'IMAddress'),
imaddress.view('incontext')) )
self.w(u"</table>")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment