Only display appraisal and access rule in management tab of simplified profiles
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Aug 2016 12:00:58 +0200
changeset 1589 684686c36fe7
parent 1588 4c397b65bd77
child 1590 02191db60b85
Only display appraisal and access rule in management tab of simplified profiles similarly as for archive units.
views/archivetransfer.py
--- a/views/archivetransfer.py	Fri Aug 26 11:44:05 2016 +0200
+++ b/views/archivetransfer.py	Fri Aug 26 12:00:58 2016 +0200
@@ -114,6 +114,17 @@
                                                            rtype_role_targets)
 
 
+class SimplifiedArchiveTransferManagementTab(ArchiveTransferManagementTab):
+    __select__ = ArchiveTransferManagementTab.__select__ & simplified_profile()
+
+    rtype_role_targets = [
+        ('seda_appraisal_rule', 'object', None),
+        ('seda_access_rule', 'object', None),
+    ]
+    rsection, display_ctrl = rtags_from_rtype_role_targets('SEDAArchiveTransfer',
+                                                           rtype_role_targets)
+
+
 class ArchiveTransferDataObjectsTab(viewlib.SubObjectsTab):
     """Tab for data objects of an archive transfer"""
     __regid__ = 'seda_at_data_objects_tab'