[PATCH 2 of 6 eac] Drop "fulltext_container" on qualified relations between authority records

Denis Laxalde denis.laxalde at logilab.fr
Tue Oct 30 11:14:54 CET 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1540887841 -3600
#      Tue Oct 30 09:24:01 2018 +0100
# Node ID dbdcb8cedb3f4d7ea2956980dff474942add6ac4
# Parent  dd1de190b78f8e9ccdabaaf139b4b2b8fc8cf707
# Available At http://hg.logilab.org/review/cubes/eac
#              hg pull http://hg.logilab.org/review/cubes/eac -r dbdcb8cedb3f
Drop "fulltext_container" on qualified relations between authority records

This partially reverts d6bb2b2b0ed7. Indeed, considering one side of
these qualified relations are dominant is not appropriate as these
relations are symmetrical (subject and object play the same role).

diff --git a/cubicweb_eac/migration/0.8.1_Any.py b/cubicweb_eac/migration/0.8.1_Any.py
new file mode 100644
--- /dev/null
+++ b/cubicweb_eac/migration/0.8.1_Any.py
@@ -0,0 +1,9 @@
+for rtype in (
+    'association_from',
+    'association_to',
+    'chronological_predecessor',
+    'chronological_successor',
+    'hierarchical_parent',
+    'hierarchical_child',
+):
+    sync_schema_props_perms(rtype)
diff --git a/cubicweb_eac/schema.py b/cubicweb_eac/schema.py
--- a/cubicweb_eac/schema.py
+++ b/cubicweb_eac/schema.py
@@ -186,7 +186,6 @@ class _agent_relation(RelationDefinition
     cardinality = '1*'
     inlined = True
     composite = 'object'
-    fulltext_container = 'object'
 
 
 @xml_wrap



More information about the saem-devel mailing list