Commit 3e721271 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Consistent naming of the management tab for both archive transfer / archive unit

This will ease later error handling, i.e. to easily link to the tab when some
error is detected on a management rule, independantly of the rule's parent
(transfer or unit).
parent 13b39d6ff207
......@@ -31,7 +31,7 @@ RULES = {
_("First level archive unit must have an associated access rule to be exportable "
"in SEDA 1. You may define it on the archive unit or as a default rule on the "
"transfer."),
'seda_au_management_tab',
'seda_management_tab',
set([
'seda_archive_unit',
'seda_alt_archive_unit_archive_unit_ref_id',
......
......@@ -4995,9 +4995,6 @@ msgstr ""
msgid "seda_at_diagnose_tab"
msgstr ""
msgid "seda_at_management_tab"
msgstr ""
msgid "seda_at_related_transfers_tab"
msgstr ""
......@@ -5030,9 +5027,6 @@ msgstr ""
msgid "seda_au_indexation_tab"
msgstr ""
msgid "seda_au_management_tab"
msgstr ""
msgid "seda_authorized_agent_from"
msgstr ""
......@@ -6183,6 +6177,9 @@ msgctxt "SEDAPhysicalDataObject"
msgid "seda_length_object"
msgstr ""
msgid "seda_management_tab"
msgstr ""
msgid "seda_message_digest_algorithm_code_list_version"
msgstr ""
......
......@@ -5008,9 +5008,6 @@ msgstr "objets-données"
msgid "seda_at_diagnose_tab"
msgstr "diagnostic"
msgid "seda_at_management_tab"
msgstr "gestion"
msgid "seda_at_related_transfers_tab"
msgstr "transferts associés"
......@@ -5043,9 +5040,6 @@ msgstr "historique de conservation"
msgid "seda_au_indexation_tab"
msgstr "indexation"
msgid "seda_au_management_tab"
msgstr "gestion"
msgid "seda_authorized_agent_from"
msgstr ""
......@@ -6196,6 +6190,9 @@ msgctxt "SEDAPhysicalDataObject"
msgid "seda_length_object"
msgstr ""
msgid "seda_management_tab"
msgstr "gestion"
msgid "seda_message_digest_algorithm_code_list_version"
msgstr "algorithmes d'empreinte"
......
......@@ -83,7 +83,7 @@ class ArchiveTransferTabbedPrimaryView(tabs.TabbedPrimaryView):
tabs = [
'main_tab',
_('seda_at_code_list_versions_tab'),
_('seda_at_management_tab'),
_('seda_management_tab'),
_('seda_at_data_objects_tab'),
_('seda_at_archive_units_tab'),
_('seda_at_related_transfers_tab'),
......@@ -119,7 +119,7 @@ class SimplifiedArchiveTransferCodeListVersionsTab(ArchiveTransferCodeListVersio
class ArchiveTransferManagementTab(tabs.PrimaryTab):
"""Main tab for management data of an archive transfer"""
__regid__ = 'seda_at_management_tab'
__regid__ = 'seda_management_tab'
__select__ = tabs.PrimaryTab.__select__ & is_instance('SEDAArchiveTransfer')
rtype_role_targets = [
......
......@@ -138,7 +138,7 @@ class ArchiveUnitTabbedPrimaryView(tabs.TabbedPrimaryView):
tabs = [
'main_tab',
_('seda_au_management_tab'),
_('seda_management_tab'),
_('seda_au_content_tab'),
_('seda_au_indexation_tab'),
_('seda_au_history_tab'),
......@@ -181,7 +181,7 @@ class TitleBusinessValueEntityView(viewlib.BusinessValueEntityView):
class ArchiveUnitManagementTab(tabs.PrimaryTab):
"""Display management information about an archive unit."""
__regid__ = 'seda_au_management_tab'
__regid__ = 'seda_management_tab'
__select__ = is_instance('SEDAArchiveUnit') & ~is_archive_unit_ref()
rtype_role_targets = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment