web/views/cwuser.py
changeset 7990 a673d1d9a738
parent 7894 ad0eeb0f7a8d
child 7993 aa0addce4dae
--- a/web/views/cwuser.py	Fri Oct 21 14:32:18 2011 +0200
+++ b/web/views/cwuser.py	Fri Oct 21 14:32:37 2011 +0200
@@ -47,8 +47,8 @@
     category = 'mainactions'
 
     def url(self):
-        login = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0).login
-        return self._cw.build_url('cwuser/%s'%login, vid='propertiesform')
+        user = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
+        return user.absolute_url(vid='propertiesform')
 
 
 class FoafView(EntityView):