[PATCH saem_ref] [views] Reintroduce uicfg rule inadvertandly moved to eac

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 1 15:53:26 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1488352217 -3600
#      Wed Mar 01 08:10:17 2017 +0100
# Node ID 38ce60fdedd73a34567763fbdb57d466277a7735
# Parent  5dc81a35cbde6df1b88d25897d30b0bd7cfc8ace
[views] Reintroduce uicfg rule inadvertandly moved to eac

diff --git a/cubicweb_saem_ref/views/authorityrecord.py b/cubicweb_saem_ref/views/authorityrecord.py
--- a/cubicweb_saem_ref/views/authorityrecord.py
+++ b/cubicweb_saem_ref/views/authorityrecord.py
@@ -56,10 +56,12 @@ for rtype in ('chronological_predecessor
               'hierarchical_parent', 'hierarchical_child',
               'association_from', 'association_to'):
     affk.tag_subject_of(('*', rtype, '*'),
                         {'widget': rwdg.RelationFacetWidget(dialog_options={'width': 800})})
 
+afs.tag_object_of(('*', 'use_authorityrecord', 'AuthorityRecord'), 'main', 'hidden')
+
 
 class EACImportComponent(ImportEntityComponent):
     """Component with a link to import an authority record from an EAC-CPF file."""
     __select__ = (ImportEntityComponent.__select__
                   & is_instance('AuthorityRecord')


More information about the saem-devel mailing list