Commit 417a555b authored by Julien Cristau's avatar Julien Cristau
Browse files

[views] stop relying on builtin _

Import it from cubicweb if available (3.22), use unicode otherwise.
parent 299ad7cc17ee
......@@ -19,6 +19,12 @@ from cubicweb.web import controller, form, captcha
from cubicweb.web import formwidgets as fw, formfields as ff
from cubicweb.web.views import forms, basecomponents, urlrewrite
try:
from cubicweb import _
except ImportError:
_ = unicode
def qname(attr):
return role_name(attr, 'subject')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment