[PATCH 01 of 13 saem_ref] [eac] Use a relation widget to select external uris

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Mar 31 17:57:13 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490800289 -7200
#      Wed Mar 29 17:11:29 2017 +0200
# Node ID 540baa95ddfd9b39f065737504db396e8e117167
# Parent  decc49279a7651b453ca5a20258d1f6d510dd681
[eac] Use a relation widget to select external uris

As the relation is mandatory and there may be a lot of these (imported schemes),
we don't want a combobox.

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
@@ -52,11 +52,12 @@ for etype in ('AuthorityRecord',
                           widget=JQueryIncompleteDatePicker(update_max='start_date',
                                                             default_end=True))
 
 for rtype in ('chronological_predecessor', 'chronological_successor',
               'hierarchical_parent', 'hierarchical_child',
-              'association_from', 'association_to'):
+              'association_from', 'association_to',
+              'resource_relation_resource'):
     affk.tag_subject_of(('*', rtype, '*'),
                         {'widget': rwdg.RelationFacetWidget(dialog_options={'width': 800})})
 
 afs.tag_object_of(('*', 'use_authorityrecord', 'AuthorityRecord'), 'main', 'hidden')
 


More information about the saem-devel mailing list