Hide 'simplified' from UI, this is an implementation detail
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Oct 2016 17:38:12 +0200
changeset 1950 4775f5b15412
parent 1949 c61b45994daa
child 1951 cdc88a9ee438
Hide 'simplified' from UI, this is an implementation detail
views/archivetransfer.py
--- a/views/archivetransfer.py	Fri Oct 21 17:34:40 2016 +0200
+++ b/views/archivetransfer.py	Fri Oct 21 17:38:12 2016 +0200
@@ -234,7 +234,10 @@
 
     def entity_call(self, entity):
         self.w(u'<p class="bg-info">')
-        self.w(self._cw._('Supported formats: {0}.').format(entity.compat_list))
+        formats = entity.formats_compat
+        if 'simplified' in formats:
+            formats.remove('simplified')
+        self.w(self._cw._('Supported formats: {0}.').format(', '.join(sorted(formats))))
         self.w(u'</p>')
         doctor = entity.cw_adapt_to('ISEDACompatAnalyzer')
         data = [(tags.a(e.entity.dc_title(),