# HG changeset patch
# User Denis Laxalde <denis.laxalde@logilab.fr>
# Date 1468403703 -7200
#      Wed Jul 13 11:55:03 2016 +0200
# Node ID fcb981478121e867e12e110cff7a45a407e0df17
# Parent  d6dd8f55f4219cee4abe0eda27ad47f916d0c693
[views] Import _ from cubicweb rather that defining _ = unicode

The latter does not work with Python 3.

diff --git a/views.py b/views.py
--- a/views.py
+++ b/views.py
@@ -15,7 +15,7 @@
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 """cubicweb-compound views/forms/actions/components for web ui"""
 
-from cubicweb import neg_role
+from cubicweb import _, neg_role
 from cubicweb.web import Redirect
 from cubicweb.predicates import (one_line_rset, adaptable, has_permission,
                                  match_form_params)
@@ -25,9 +25,6 @@
 from cubes.compound.entities import copy_entity
 
 
-_ = unicode
-
-
 class CloneAction(actions.CopyAction):
     """Just a copy action (copy is handled by edit controller below) named 'clone'."""
     __select__ = (actions.CopyAction.__select__ & one_line_rset() &