[cwgroup views] uicfg rules cleanup stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 09 May 2011 09:13:22 +0200
branchstable
changeset 7333 0deded0dc5da
parent 7331 7fcc4f22f3e4
child 7334 976346907d98
[cwgroup views] uicfg rules cleanup
web/views/cwuser.py
--- a/web/views/cwuser.py	Sat May 07 10:51:36 2011 +0200
+++ b/web/views/cwuser.py	Mon May 09 09:13:22 2011 +0200
@@ -33,16 +33,8 @@
 
 _pvs = uicfg.primaryview_section
 _pvs.tag_attribute(('CWUser', 'login'), 'hidden')
-_pvs.tag_attribute(('CWGroup', 'name'), 'hidden')
-_pvs.tag_subject_of(('CWGroup', 'read_permission', '*'), 'relations')
-_pvs.tag_subject_of(('CWGroup', 'add_permission', '*'), 'relations')
-_pvs.tag_subject_of(('CWGroup', 'delete_permission', '*'), 'relations')
-_pvs.tag_subject_of(('CWGroup', 'update_permission', '*'), 'relations')
-_pvs.tag_object_of(('*', 'in_group', 'CWGroup'), 'relations')
-_pvs.tag_object_of(('*', 'require_group', 'CWGroup'), 'relations')
 
 _affk = uicfg.autoform_field_kwargs
-
 _affk.tag_subject_of(('CWUser', 'in_group', 'CWGroup'),
                     {'widget': formwidgets.InOutWidget})
 
@@ -100,6 +92,11 @@
 
 # group views ##################################################################
 
+_pvs.tag_attribute(('CWGroup', 'name'), 'hidden')
+_pvs.tag_subject_of(('CWGroup', 'read_permission', '*'), 'relations')
+_pvs.tag_subject_of(('CWGroup', 'add_permission', '*'), 'relations')
+_pvs.tag_subject_of(('CWGroup', 'delete_permission', '*'), 'relations')
+_pvs.tag_subject_of(('CWGroup', 'update_permission', '*'), 'relations')
 _pvs.tag_object_of(('CWUser', 'in_group', 'CWGroup'), 'hidden')
 _pvs.tag_object_of(('*', 'require_group', 'CWGroup'), 'hidden')