[PATCH 2 of 6 seda] [diag] Don't check for RNG ambiguities on management rules

Sylvain Thenault sylvain.thenault at logilab.fr
Mon Dec 11 16:51:33 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1512573448 -3600
#      Wed Dec 06 16:17:28 2017 +0100
# Node ID 6ffc8c296211876739ee47a7ed2b926ab3f92a2c
# Parent  670dd3358be82c9934df2ef0e8eb00b822fc0288
[diag] Don't check for RNG ambiguities on management rules

I don't think we care about such rules'order and they should usually be fixed in
the profile, so don't check them.

If one wish to check them at some point, it should add ordering on relevant
entities and extend consistently the xsd2yams.MULTIPLE_CHILDREN list.

diff --git a/cubicweb_seda/entities/diag.py b/cubicweb_seda/entities/diag.py
--- a/cubicweb_seda/entities/diag.py
+++ b/cubicweb_seda/entities/diag.py
@@ -267,11 +267,12 @@ def _parent(entity):
     'seda_is_version_of': 'seda_relations_tab',
     'seda_juridictional': 'seda_coverage_tab',
     'seda_keyword': 'seda_indexation_tab',
     'seda_physical_data_object': 'seda_data_objects_tab',
     'seda_recipient_from': 'seda_agents_tab',
-    'seda_ref_non_rule_id_from': 'seda_management_tab',
+    # don't care about order on this one, for now at least
+    # 'seda_ref_non_rule_id_from': 'seda_management_tab',
     'seda_references': 'seda_relations_tab',
     'seda_related_transfer_reference': 'seda_at_related_transfers_tab',
     'seda_relationship': 'seda_do_relations',
     'seda_replaces': 'seda_relations_tab',
     'seda_requires': 'seda_relations_tab',


More information about the saem-devel mailing list