[py3] Replace a unicode() occurrence in workflow views
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 24 Jan 2018 14:45:26 +0100
changeset 12251 fd7086b701de
parent 12250 afc678253bc2
child 12252 64c4edac1706
[py3] Replace a unicode() occurrence in workflow views
cubicweb/web/views/workflow.py
--- a/cubicweb/web/views/workflow.py	Wed Jan 24 14:41:01 2018 +0100
+++ b/cubicweb/web/views/workflow.py	Wed Jan 24 14:45:26 2018 +0100
@@ -26,7 +26,7 @@
 
 import os
 
-from six import add_metaclass
+from six import add_metaclass, text_type
 
 from logilab.mtconverter import xml_escape
 from logilab.common.deprecation import class_deprecated
@@ -313,7 +313,7 @@
     wf = req.entity_from_eid(wfeid)
     rschema = req.vreg.schema[field.name]
     param = 'toeid' if field.role == 'subject' else 'fromeid'
-    return sorted((e.view('combobox'), unicode(e.eid))
+    return sorted((e.view('combobox'), text_type(e.eid))
                   for e in getattr(wf, 'reverse_%s' % wfrelation)
                   if rschema.has_perm(req, 'add', **{param: e.eid}))