web/views/cwuser.py
branchtls-sprint
changeset 1720 14c9a0a1aca1
parent 1639 375c857aa0f5
child 1721 694f6a50e138
equal deleted inserted replaced
1719:bf26f32c8a72 1720:14c9a0a1aca1
    40     def url(self):
    40     def url(self):
    41         login = self.rset.get_entity(self.row or 0, self.col or 0).login
    41         login = self.rset.get_entity(self.row or 0, self.col or 0).login
    42         return self.build_url('cwuser/%s'%login, vid='epropertiesform')
    42         return self.build_url('cwuser/%s'%login, vid='epropertiesform')
    43 
    43 
    44 
    44 
    45 class CWUserPrimaryView(primary.PrimaryView):
       
    46     __select__ = implements('CWUser')
       
    47 
       
    48     def content_title(self, entity):
       
    49         return entity.name()
       
    50 
       
    51 
       
    52 class FoafView(EntityView):
    45 class FoafView(EntityView):
    53     id = 'foaf'
    46     id = 'foaf'
    54     __select__ = implements('CWUser')
    47     __select__ = implements('CWUser')
    55 
    48 
    56     title = _('foaf')
    49     title = _('foaf')