web/views/cwuser.py
changeset 3890 d7a270f50f54
parent 3460 e4843535db25
parent 3808 60e78e93a0e5
child 4252 6c4f109c2b03
--- a/web/views/cwuser.py	Sun Nov 08 21:53:18 2009 +0100
+++ b/web/views/cwuser.py	Fri Nov 20 19:35:54 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):
     __regid__ = 'prefs'
     __select__ = (one_line_rset() & implements('CWUser') &