Apply some existing uicfg configuration to both binary and physical data objects
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Aug 2016 08:36:36 +0200
changeset 1561 06cbe60f1524
parent 1560 01add3208c55
child 1562 d81b3e43df36
Apply some existing uicfg configuration to both binary and physical data objects
views/dataobject.py
--- a/views/dataobject.py	Fri Aug 26 08:24:41 2016 +0200
+++ b/views/dataobject.py	Fri Aug 26 08:36:36 2016 +0200
@@ -92,15 +92,16 @@
         return baserql, {'at': container}
 
 
+pvs.tag_object_of(('*', 'seda_data_object_reference_id', '*'),
+                  'relations')
+pvdc.tag_object_of(('*', 'seda_data_object_reference_id', '*'),
+                   {'vid': 'autolimited',
+                    'subvid': 'seda.object-ref.archive-unit',
+                    'label': _('referenced by:')})
+
 # hide some relation from autoform because of limitation of _container_eid
 afs.tag_object_of(('*', 'seda_compressed', 'SEDABinaryDataObject'), 'main', 'hidden')
 pvs.tag_object_of(('*', 'seda_compressed', 'SEDABinaryDataObject'), 'attributes')
-pvs.tag_object_of(('*', 'seda_data_object_reference_id', 'SEDABinaryDataObject'),
-                  'relations')
-pvdc.tag_object_of(('*', 'seda_data_object_reference_id', 'SEDABinaryDataObject'),
-                   {'vid': 'autolimited',
-                    'subvid': 'seda.object-ref.archive-unit',
-                    'label': _('referenced by:')})
 rec.tag_object_of(('*', 'seda_compressed', 'SEDABinaryDataObject'),
                   {'rvid': 'seda.reledit.complexlink',
                    'novalue_label': _('<unauthorized>')})