Consistent naming of the management tab for both archive transfer / archive unit
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 13 Oct 2016 14:26:14 +0200
changeset 1742 6493df257368
parent 1741 13b39d6ff207
child 1783 c29eea525d9e
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).
entities/diag.py
i18n/en.po
i18n/fr.po
views/archivetransfer.py
views/archiveunit.py
--- a/entities/diag.py	Thu Oct 13 18:05:26 2016 +0200
+++ b/entities/diag.py	Thu Oct 13 14:26:14 2016 +0200
@@ -31,7 +31,7 @@
         _("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',
--- a/i18n/en.po	Thu Oct 13 18:05:26 2016 +0200
+++ b/i18n/en.po	Thu Oct 13 14:26:14 2016 +0200
@@ -4995,9 +4995,6 @@
 msgid "seda_at_diagnose_tab"
 msgstr ""
 
-msgid "seda_at_management_tab"
-msgstr ""
-
 msgid "seda_at_related_transfers_tab"
 msgstr ""
 
@@ -5030,9 +5027,6 @@
 msgid "seda_au_indexation_tab"
 msgstr ""
 
-msgid "seda_au_management_tab"
-msgstr ""
-
 msgid "seda_authorized_agent_from"
 msgstr ""
 
@@ -6183,6 +6177,9 @@
 msgid "seda_length_object"
 msgstr ""
 
+msgid "seda_management_tab"
+msgstr ""
+
 msgid "seda_message_digest_algorithm_code_list_version"
 msgstr ""
 
--- a/i18n/fr.po	Thu Oct 13 18:05:26 2016 +0200
+++ b/i18n/fr.po	Thu Oct 13 14:26:14 2016 +0200
@@ -5008,9 +5008,6 @@
 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 @@
 msgid "seda_au_indexation_tab"
 msgstr "indexation"
 
-msgid "seda_au_management_tab"
-msgstr "gestion"
-
 msgid "seda_authorized_agent_from"
 msgstr ""
 
@@ -6196,6 +6190,9 @@
 msgid "seda_length_object"
 msgstr ""
 
+msgid "seda_management_tab"
+msgstr "gestion"
+
 msgid "seda_message_digest_algorithm_code_list_version"
 msgstr "algorithmes d'empreinte"
 
--- a/views/archivetransfer.py	Thu Oct 13 18:05:26 2016 +0200
+++ b/views/archivetransfer.py	Thu Oct 13 14:26:14 2016 +0200
@@ -83,7 +83,7 @@
     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 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 = [
--- a/views/archiveunit.py	Thu Oct 13 18:05:26 2016 +0200
+++ b/views/archiveunit.py	Thu Oct 13 14:26:14 2016 +0200
@@ -138,7 +138,7 @@
 
     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 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 = [