add CWProperty for_user CWUser when on the user primary view
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 26 Jan 2010 10:35:46 +0100
changeset 4361 887c92793407
parent 4360 5fdb9da1fab0
child 4362 817851a77e27
add CWProperty for_user CWUser when on the user primary view
web/views/cwproperties.py
--- a/web/views/cwproperties.py	Tue Jan 26 10:35:23 2010 +0100
+++ b/web/views/cwproperties.py	Tue Jan 26 10:35:46 2010 +0100
@@ -22,6 +22,7 @@
 from cubicweb.web.formwidgets import Select, TextInput, Button, SubmitButton, FieldWidget
 from cubicweb.web.views import primary, formrenderers
 
+uicfg.primaryview_section.tag_object_of(('*', 'for_user', '*'), 'hidden')
 
 # some string we want to be internationalizable for nicer display of property
 # groups