Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
fd7086b701de
Commit
56dd9cf7
authored
Jan 24, 2018
by
Denis Laxalde
Browse files
[py3] Replace a unicode() occurrence in workflow views
parent
afc678253bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb/web/views/workflow.py
View file @
fd7086b7
...
...
@@ -26,7 +26,7 @@ from cubicweb import _
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 @@ def _wf_items_for_relation(req, wfeid, wfrelation, field):
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'
),
unicod
e
(
e
.
eid
))
return
sorted
((
e
.
view
(
'combobox'
),
text_typ
e
(
e
.
eid
))
for
e
in
getattr
(
wf
,
'reverse_%s'
%
wfrelation
)
if
rschema
.
has_perm
(
req
,
'add'
,
**
{
param
:
e
.
eid
}))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment