Add uicfg rule to display digest algorithm on binary data object primary view
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 26 Aug 2016 09:05:51 +0200
changeset 1578 c0e49ad09701
parent 1577 946cd9fa7dde
child 1579 7fcc34c201fe
Add uicfg rule to display digest algorithm on binary data object primary view unclear why it wasn't displayed by default while it is for Compressed entities. Add clearer translation along the way.
i18n/fr.po
views/dataobject.py
--- a/i18n/fr.po	Fri Aug 26 08:55:52 2016 +0200
+++ b/i18n/fr.po	Fri Aug 26 09:05:51 2016 +0200
@@ -4593,7 +4593,7 @@
 
 msgctxt "SEDABinaryDataObject"
 msgid "seda_algorithm"
-msgstr "empreinte de l'objet-données"
+msgstr "algorithme d'empreinte"
 
 msgctxt "SEDACompressed"
 msgid "seda_algorithm"
--- a/views/dataobject.py	Fri Aug 26 08:55:52 2016 +0200
+++ b/views/dataobject.py	Fri Aug 26 09:05:51 2016 +0200
@@ -100,6 +100,7 @@
                     'subvid': 'seda.object-ref.archive-unit',
                     'label': _('referenced by:')})
 
+pvs.tag_subject_of(('*', 'seda_algorithm', '*'), 'attributes')
 pvs.tag_object_of(('*', 'seda_target', '*'), 'hidden')  # in the relationship tab
 
 simplified_pvs = copy_rtag(pvs, __name__,