web/views/cwuser.py
changeset 7990 a673d1d9a738
parent 7894 ad0eeb0f7a8d
child 7993 aa0addce4dae
equal deleted inserted replaced
7989:db76e8aaec29 7990:a673d1d9a738
    45 
    45 
    46     title = _('preferences')
    46     title = _('preferences')
    47     category = 'mainactions'
    47     category = 'mainactions'
    48 
    48 
    49     def url(self):
    49     def url(self):
    50         login = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0).login
    50         user = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
    51         return self._cw.build_url('cwuser/%s'%login, vid='propertiesform')
    51         return user.absolute_url(vid='propertiesform')
    52 
    52 
    53 
    53 
    54 class FoafView(EntityView):
    54 class FoafView(EntityView):
    55     __regid__ = 'foaf'
    55     __regid__ = 'foaf'
    56     __select__ = is_instance('CWUser')
    56     __select__ = is_instance('CWUser')