[PATCH 1 of 6 seda] [diag] Fix message about potential RNG validation problems

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


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1512573304 -3600
#      Wed Dec 06 16:15:04 2017 +0100
# Node ID 670dd3358be82c9934df2ef0e8eb00b822fc0288
# Parent  0e0424b9c9d33b863ada5984b9b67e63178aaa11
[diag] Fix message about potential RNG validation problems

after discussion with B. Nichelle from the SIAF, it appears that some cases are
actually handled as expected, some others not.

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
@@ -109,11 +109,12 @@ RULES = {
         set([
             'seda_when',
         ])),
     'rng_ambiguity': Rule(
         set(['RNG']),
-        _("More than one children with cardinality not equal to '1', only one is supported."),
+        _("More than one children with cardinality not equal to '1', "
+          "this may cause RNG validation problems."),
         None,  # generated at run time
         []),  # have it's own hook
 }
 
 
diff --git a/cubicweb_seda/i18n/en.po b/cubicweb_seda/i18n/en.po
--- a/cubicweb_seda/i18n/en.po
+++ b/cubicweb_seda/i18n/en.po
@@ -115,12 +115,12 @@ msgstr ""
 
 msgid "Message"
 msgstr ""
 
 msgid ""
-"More than one children with cardinality not equal to '1', only one is "
-"supported."
+"More than one children with cardinality not equal to '1', this may cause RNG "
+"validation problems."
 msgstr ""
 
 msgid "New SEDAAccessRule"
 msgstr ""
 
diff --git a/cubicweb_seda/i18n/fr.po b/cubicweb_seda/i18n/fr.po
--- a/cubicweb_seda/i18n/fr.po
+++ b/cubicweb_seda/i18n/fr.po
@@ -122,15 +122,15 @@ msgstr "Une règle n'a pas de date de dÃ
 
 msgid "Message"
 msgstr "Message"
 
 msgid ""
-"More than one children with cardinality not equal to '1', only one is "
-"supported."
+"More than one children with cardinality not equal to '1', this may cause RNG "
+"validation problems."
 msgstr ""
 "Plus d'une entité de même type et au même niveau ont une cardinalité autre "
-"que obligatoire, il ne peut y en avoir qu'une."
+"que obligatoire, cela peut poser des problèmes de validation RNG."
 
 msgid "New SEDAAccessRule"
 msgstr ""
 
 msgid "New SEDAAccessRuleCodeListVersion"



More information about the saem-devel mailing list