[views] Turn string to unicode to avoid assertion error
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 06 Feb 2017 15:29:56 +0100
changeset 2332 311edbe5c745
parent 2331 dd14281dcc40
child 2336 bf4ab9934280
[views] Turn string to unicode to avoid assertion error
views/archiveunit.py
--- a/views/archiveunit.py	Mon Feb 06 15:29:11 2017 +0100
+++ b/views/archiveunit.py	Mon Feb 06 15:29:56 2017 +0100
@@ -800,9 +800,9 @@
         if entity.reverse_seda_when:
             when = entity.reverse_seda_when[0]
             if when.user_cardinality == '1':
-                self.w(' ({})'.format(self._cw._('mandatory timestamp')))
+                self.w(u' ({})'.format(self._cw._('mandatory timestamp')))
             else:
-                self.w(' ({})'.format(self._cw._('optional timestamp')))
+                self.w(u' ({})'.format(self._cw._('optional timestamp')))
 
 
 # main tab for archive unit content ############################################