Stop hidding transfer's comments in simplified profile
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 29 Sep 2016 18:50:30 +0200
changeset 1608 c502200d190e
parent 1607 d242e37f1bf8
child 1609 8a899bb52c8b
Stop hidding transfer's comments in simplified profile we want to use them for seda 1.0 / 0.2 export.
views/archivetransfer.py
--- a/views/archivetransfer.py	Wed Sep 28 16:26:28 2016 +0200
+++ b/views/archivetransfer.py	Thu Sep 29 18:50:30 2016 +0200
@@ -59,7 +59,10 @@
     else:
         assert role == 'object'
         pvs.tag_object_of(('*', rtype, 'SEDAArchiveTransfer'), 'attributes')
-        simplified_section = 'attributes' if rtype == 'seda_archival_agreement' else 'hidden'
+        if rtype in ('seda_archival_agreement', 'seda_comment'):
+            simplified_section = 'attributes'
+        else:
+            simplified_section = 'hidden'
         simplified_pvs.tag_object_of(('*', rtype, 'SEDAArchiveTransfer'), simplified_section)
         rec.tag_object_of(('*', rtype, 'SEDAArchiveTransfer'),
                           {'rvid': 'seda.reledit.text',