[PATCH seda] [code gen] Order list to ease reading

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Oct 11 15:16:35 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1507726733 -7200
#      Wed Oct 11 14:58:53 2017 +0200
# Node ID 7f61f6047ca70fd28ff463d4ae6c88b6ada673d5
# Parent  da38fb0bba11c1227d839165a795cfc95e9f802f
# Available At https://hg.logilab.org/review/cubes/seda
#              hg pull https://hg.logilab.org/review/cubes/seda -r 7f61f6047ca7
[code gen] Order list to ease reading

diff --git a/cubicweb_seda/xsd2yams.py b/cubicweb_seda/xsd2yams.py
--- a/cubicweb_seda/xsd2yams.py
+++ b/cubicweb_seda/xsd2yams.py
@@ -193,18 +193,18 @@ RDEF_CONSTRAINTS = {
     # others
     'seda_keyword_reference_to': (
         'O in_scheme CS, S seda_keyword_reference_to_scheme CS'),
 }
 RTYPE_CARDS = {
-    'seda_title': '11',
-    'seda_description': '1?',
+    'seda_archive_unit': '?*',
+    'seda_binary_data_object': '?*',
     'seda_comment': '1?',
     'seda_custodial_history_item': '1*',
-    'seda_archive_unit': '?*',
-    'seda_binary_data_object': '?*',
+    'seda_description': '1?',
+    'seda_description_level': '1*',
     'seda_physical_data_object': '?*',
-    'seda_description_level': '1*',
+    'seda_title': '11',
 }
 RTYPE_CARD = {
     'seda_custodial_history_item': '*',
 }
 _CARD_TO_CARDS = {


More information about the saem-devel mailing list