[web ui] primaryview_section tags for CWGroup stable
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sun, 08 Nov 2009 19:37:44 +0100
branchstable
changeset 3808 60e78e93a0e5
parent 3807 8ae53322ffcc
child 3809 1b9b51ee543e
[web ui] primaryview_section tags for CWGroup
web/views/cwuser.py
--- a/web/views/cwuser.py	Sun Nov 08 19:37:08 2009 +0100
+++ b/web/views/cwuser.py	Sun Nov 08 19:37:44 2009 +0100
@@ -16,6 +16,14 @@
 
 uicfg.primaryview_section.tag_attribute(('CWUser', 'login'), 'hidden')
 
+uicfg.primaryview_section.tag_attribute(('CWGroup', 'name'), 'hidden')
+uicfg.primaryview_section.tag_subject_of(('CWGroup', 'read_permission', '*'), 'relations')
+uicfg.primaryview_section.tag_subject_of(('CWGroup', 'add_permission', '*'), 'relations')
+uicfg.primaryview_section.tag_subject_of(('CWGroup', 'delete_permission', '*'), 'relations')
+uicfg.primaryview_section.tag_subject_of(('CWGroup', 'update_permission', '*'), 'relations')
+uicfg.primaryview_section.tag_object_of(('*', 'in_group', 'CWGroup'), 'relations')
+uicfg.primaryview_section.tag_object_of(('*', 'require_group', 'CWGroup'), 'relations')
+
 class UserPreferencesEntityAction(action.Action):
     id = 'prefs'
     __select__ = (one_line_rset() & implements('CWUser') &