B CWUser login is in title, do not show in attributes stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Mon, 24 Aug 2009 20:27:05 +0200
branchstable
changeset 2971 bc0a270622c2
parent 2969 d95f23a0fc3b
child 2973 46a5a94287fa
child 2995 4ef565c1d183
B CWUser login is in title, do not show in attributes
web/views/cwuser.py
--- a/web/views/cwuser.py	Mon Aug 24 19:53:10 2009 +0200
+++ b/web/views/cwuser.py	Mon Aug 24 20:27:05 2009 +0200
@@ -11,9 +11,10 @@
 
 from cubicweb.selectors import one_line_rset, implements, match_user_groups
 from cubicweb.view import EntityView
-from cubicweb.web import action
+from cubicweb.web import action, uicfg
 from cubicweb.web.views import primary
 
+uicfg.primaryview_section.tag_attribute(('CWUser', 'login'), 'hidden')
 
 class UserPreferencesEntityAction(action.Action):
     id = 'prefs'