[PATCH 2 of 3 saem] [views] Hide primary_email relation for generic relations of CWUser

Sylvain Thenault sylvain.thenault at logilab.fr
Thu Apr 13 15:27:08 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1492089885 -7200
#      Thu Apr 13 15:24:45 2017 +0200
# Node ID dc7d9b0f53e67ee4f194cb8f6a49aeb1b03a7d68
# Parent  fdc29267c3ef16277026994cf087e8b34f1cf0db
[views] Hide primary_email relation for generic relations of CWUser

only keeping 'agent' business relation in there, which is fine for now.

diff --git a/cubicweb_saem_ref/views/__init__.py b/cubicweb_saem_ref/views/__init__.py
--- a/cubicweb_saem_ref/views/__init__.py
+++ b/cubicweb_saem_ref/views/__init__.py
@@ -44,10 +44,11 @@ abaa = uicfg.actionbox_appearsin_addmenu
 affk = uicfg.autoform_field_kwargs
 
 pvs.tag_subject_of(('*', 'ark_naa', '*'), 'attributes')
 afs.tag_subject_of(('*', 'ark_naa', '*'), 'main', 'attributes')
 afs.tag_subject_of(('*', 'custom_workflow', '*'), 'main', 'hidden')
+afs.tag_subject_of(('*', 'primary_email', '*'), 'main', 'hidden')
 
 abaa.tag_subject_of(('*', 'use_email', '*'), False)
 abaa.tag_subject_of(('*', 'phone_number', '*'), False)
 
 affk.set_field_kwargs('*', 'ark', widget=fw.TextInput({'size': 80}), required=False)


More information about the saem-devel mailing list