Commit 8e0e5ef8 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Hide code list versions tab for simplified profile

Closes extranet #12350128
parent e6af89004652
......@@ -119,27 +119,9 @@ class ArchiveTransferTabbedPrimaryView(tabs.TabbedPrimaryView):
class ArchiveTransferCodeListVersionsTab(tabs.PrimaryTab):
"""Tab for code list versions information of an archive transfer."""
__regid__ = 'seda_at_code_list_versions_tab'
__select__ = is_instance('SEDAArchiveTransfer')
rsection, display_ctrl = rtags_from_xsd_element('SEDAArchiveTransfer', 'CodeListVersions')
class SimplifiedArchiveTransferCodeListVersionsTab(ArchiveTransferCodeListVersionsTab):
__select__ = ArchiveTransferCodeListVersionsTab.__select__ & simplified_profile()
__select__ = is_instance('SEDAArchiveTransfer') & full_seda2_profile()
rsection, display_ctrl = rtags_from_xsd_element('SEDAArchiveTransfer', 'CodeListVersions')
for rtype in ('seda_reply_code_list_version',
'seda_file_format_code_list_version',):
rsection.tag_subject_of(('SEDAArchiveTransfer', rtype, '*'), 'hidden')
for rtype in ('seda_classification_rule_code_list_version_from',
'seda_data_object_version_code_list_version_from',
'seda_compression_algorithm_code_list_version_from',
'seda_storage_rule_code_list_version_from',
'seda_dissemination_rule_code_list_version_from',
'seda_reuse_rule_code_list_version_from',
'seda_relationship_code_list_version_from'):
rsection.tag_object_of(('*', rtype, 'SEDAArchiveTransfer'), 'hidden')
class ArchiveTransferManagementTab(tabs.PrimaryTab):
......
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