[ui] don't handle seda_data_object_reference globally
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 12 Jul 2016 10:47:46 +0200
changeset 1412 4ab284d9934d
parent 1411 1ffc8d98bade
child 1413 ea9e4c81b4aa
[ui] don't handle seda_data_object_reference globally We've to distinguish the case of generic reference from other kind of references available through SEDAContent (IsPartOf, VersionOf, etc).
i18n/en.po
i18n/fr.po
views/archiveunit.py
views/uicfg.py
xsd2uicfg.py
--- a/i18n/en.po	Tue Jul 12 10:45:57 2016 +0200
+++ b/i18n/en.po	Tue Jul 12 10:47:46 2016 +0200
@@ -891,6 +891,31 @@
 msgid "SEDADataObjectReference"
 msgstr ""
 
+msgctxt ""
+"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltIsVersionOfArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltReferencesArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltReplacesArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltRequiresArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
 msgid "SEDADataObjectReference_plural"
 msgstr ""
 
@@ -2856,6 +2881,31 @@
 msgid "add a SEDADataObjectReference"
 msgstr ""
 
+msgctxt ""
+"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltIsVersionOfArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltReferencesArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltReplacesArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltRequiresArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
 msgid "add a SEDADataObjectVersion"
 msgstr ""
 
--- a/i18n/fr.po	Tue Jul 12 10:45:57 2016 +0200
+++ b/i18n/fr.po	Tue Jul 12 10:47:46 2016 +0200
@@ -892,6 +892,31 @@
 msgstr ""
 
 msgid "SEDADataObjectReference"
+msgstr "référence à un objet-données interne"
+
+msgctxt ""
+"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltIsVersionOfArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltReferencesArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltReplacesArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltRequiresArchiveUnitRefId.seda_data_object_reference.object"
+msgid "SEDADataObjectReference"
 msgstr ""
 
 msgid "SEDADataObjectReference_plural"
@@ -2857,6 +2882,31 @@
 msgstr ""
 
 msgid "add a SEDADataObjectReference"
+msgstr "référence à un objet-donnée interne"
+
+msgctxt ""
+"inlined:SEDAAltIsPartOfArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltIsVersionOfArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltReferencesArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltReplacesArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
+msgstr ""
+
+msgctxt ""
+"inlined:SEDAAltRequiresArchiveUnitRefId.seda_data_object_reference.object"
+msgid "add a SEDADataObjectReference"
 msgstr ""
 
 msgid "add a SEDADataObjectVersion"
--- a/views/archiveunit.py	Tue Jul 12 10:45:57 2016 +0200
+++ b/views/archiveunit.py	Tue Jul 12 10:47:46 2016 +0200
@@ -271,6 +271,14 @@
 # other for archive unit content. This is done by a mix of uicfg, form and renderer customization
 # depending on a 'unit_type' parameter in form params.
 
+pvs.tag_object_of(('*', 'seda_data_object_reference',
+                   'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'),
+                  'hidden')
+afs.tag_object_of(('*', 'seda_data_object_reference',
+                   'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'),
+                  'main', 'hidden')
+
+
 au_ref_afs = deepcopy(afs)
 au_ref_afs.__module__ = __name__
 au_ref_afs.__select__ = (is_instance('SEDAAltArchiveUnitArchiveUnitRefId')
--- a/views/uicfg.py	Tue Jul 12 10:45:57 2016 +0200
+++ b/views/uicfg.py	Tue Jul 12 10:47:46 2016 +0200
@@ -668,7 +668,7 @@
 afs.tag_subject_of(('*', 'seda_content', '*'), 'main', 'hidden')
 afs.tag_object_of(('*', 'seda_content', '*'), 'main', 'hidden')
 afs.tag_subject_of(('*', 'seda_data_object_reference', '*'), 'main', 'hidden')
-afs.tag_object_of(('*', 'seda_data_object_reference', '*'), 'main', 'hidden')
+afs.tag_object_of(('*', 'seda_data_object_reference', '*'), 'main', 'inlined')
 afs.tag_object_of(('*', 'seda_data_object_reference_id', '*'), 'main', 'hidden')
 afs.tag_subject_of(('*', 'seda_data_object_reference_id', '*'), 'main', 'attributes')
 afs.tag_subject_of(('*', 'seda_restriction_rule_id_ref', '*'), 'main', 'hidden')
@@ -974,8 +974,6 @@
 pvs.tag_object_of(('*', 'seda_archive_unit', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_content', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_content', '*'), 'hidden')
-pvs.tag_subject_of(('*', 'seda_data_object_reference', '*'), 'hidden')
-pvs.tag_object_of(('*', 'seda_data_object_reference', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_restriction_rule_id_ref', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_restriction_rule_id_ref', '*'), 'hidden')
 pvs.tag_subject_of(('*', 'seda_restriction_value', '*'), 'hidden')
--- a/xsd2uicfg.py	Tue Jul 12 10:45:57 2016 +0200
+++ b/xsd2uicfg.py	Tue Jul 12 10:47:46 2016 +0200
@@ -43,7 +43,6 @@
     'seda_reuse_rule',
     'seda_classification_rule',
     'seda_need_authorization',
-    'seda_data_object_reference',
     'seda_content',
     'seda_restriction_rule_id_ref',
     'seda_restriction_value',