Hide FileInfo tab of data object in simplified profiles
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Aug 2016 11:11:35 +0200
changeset 1587 3001f8a4afdd
parent 1586 3f8a4288c11e
child 1588 4c397b65bd77
Hide FileInfo tab of data object in simplified profiles
views/dataobject.py
--- a/views/dataobject.py	Fri Aug 26 10:43:23 2016 +0200
+++ b/views/dataobject.py	Fri Aug 26 11:11:35 2016 +0200
@@ -199,7 +199,7 @@
     """Display file information of a binary data object"""
 
     __regid__ = 'seda_bdo_file_information'
-    __select__ = tabs.PrimaryTab.__select__ & is_instance('SEDABinaryDataObject')
+    __select__ = is_instance('SEDABinaryDataObject') & full_seda2_profile()
 
     rsection, display_ctrl = rtags_from_xsd_element('SEDABinaryDataObject', 'FileInfo')