Skip to content
Snippets Groups Projects
Commit 4938fcf9dfdf authored by Sandrine Ribeau's avatar Sandrine Ribeau
Browse files

[views] ticket #79178, add the latest comments on the CWUser primary view

parent 4cf8c1fd9d08
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,12 @@
uicfg.actionbox_appearsin_addmenu.tag_object_of(('*', 'comments', '*'), False)
uicfg.primaryview_section.tag_subject_of(('*', 'comments', '*'), 'hidden')
uicfg.primaryview_section.tag_object_of(('*', 'comments', '*'), 'hidden')
uicfg.primaryview_section.tag_object_of(('Comment', 'created_by', 'CWUser'), 'relations')
uicfg.primaryview_display_ctrl.tag_object_of(
('Comment', 'created_by', 'CWUser'),
{'vid': 'list', 'label': _('latest comment(s):'), 'limit': True,
'filter': lambda rset: rset.filtered_rset(lambda x: x.e_schema == 'Comment')})
def _login_register_link(req):
if 'registration' in req.vreg.config.cubes():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment