web/views/cwuser.py
branchstable
changeset 3808 60e78e93a0e5
parent 2971 bc0a270622c2
child 3890 d7a270f50f54
child 4212 ab6573088b4a
--- 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') &