equal
deleted
inserted
replaced
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') |