[PATCH 1 of 2 saem] [3.25] Add uicfg rules that are not anymore deducted

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Mar 31 18:11:59 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490876733 -7200
#      Thu Mar 30 14:25:33 2017 +0200
# Node ID 6c18419865401df8fae660c0133a98e3fa1f95b8
# Parent  51c66eefe3d4093b27d50706bd60efc779965943
[3.25] Add uicfg rules that are not anymore deducted

cw 3.25 doesn't anymore generate rules to hide the opposite relation of inlined
forms.

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
@@ -40,10 +40,13 @@ pvs = uicfg.primaryview_section
 pvdc = uicfg.primaryview_display_ctrl
 afs = uicfg.autoform_section
 aff = uicfg.autoform_field
 affk = uicfg.autoform_field_kwargs
 
+# XXX drop these two lines one eac > 0.5.0 is released
+afs.tag_object_of(('AgentPlace', 'place_address', 'PostalAddress'), 'main', 'hidden')
+afs.tag_object_of(('*', 'has_citation', '*'), 'main', 'hidden')
 
 for etype in ('AuthorityRecord',
               'AssociationRelation', 'ChronologicalRelation', 'HierarchicalRelation',
               'Mandate', 'LegalStatus', 'EACResourceRelation'):
     affk.set_field_kwargs(etype, 'start_date',
diff --git a/cubicweb_saem_ref/views/skos.py b/cubicweb_saem_ref/views/skos.py
--- a/cubicweb_saem_ref/views/skos.py
+++ b/cubicweb_saem_ref/views/skos.py
@@ -48,10 +48,13 @@ class SKOSImportComponent(ImportEntityCo
         return self._cw.build_url('add/skossource')
 
 
 afs.tag_object_of(('*', 'related_concept_scheme', 'ConceptScheme'), 'main', 'hidden')
 
+# XXX drop above line once skos > 1.1.1 is out
+afs.tag_subject_of(('*', 'label_of', '*'), 'inlined', 'hidden')
+
 skos.ConceptSchemePrimaryView.tabs.append(_('saem.lifecycle_tab'))
 skos.ConceptPrimaryView.tabs.append(_('saem.lifecycle_tab'))
 
 
 class ConceptSchemeSameETypeListView(baseviews.SameETypeListView):


More information about the saem-devel mailing list