[PATCH eac] [3.25] Add uicfg rules that are not anymore deducted

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 29 17:31:00 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490801091 -7200
#      Wed Mar 29 17:24:51 2017 +0200
# Node ID 5ce05f9132b21bda8c902675b1d419dd1d9e428e
# Parent  4534dd631ce5ddec3e2f1e8f10cc0671b749e98a
[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_eac/views.py b/cubicweb_eac/views.py
--- a/cubicweb_eac/views.py
+++ b/cubicweb_eac/views.py
@@ -104,15 +104,17 @@ for etype, rtype in (
 
 # Citation
 pvdc.tag_attribute(('Citation', 'uri'), {'vid': 'urlattr'})
 # Generic rules for all entity types having an `has_citation` relationship.
 afs.tag_subject_of(('*', 'has_citation', '*'), 'main', 'inlined')
+afs.tag_object_of(('*', 'has_citation', '*'), 'main', 'hidden')
 pvs.tag_object_of(('*', 'has_citation', 'Citation'), 'hidden')
 
 # AgentPlace
 afs.tag_subject_of(('AgentPlace', 'place_address', 'PostalAddress'),
                    'main', 'inlined')
+afs.tag_object_of(('AgentPlace', 'place_address', 'PostalAddress'), 'main', 'hidden')
 
 # AgentFunction
 affk.set_field_kwargs('AgentFunction', 'name', widget=fw.TextInput({'size': 80}))
 
 


More information about the saem-devel mailing list