Skip to content
Snippets Groups Projects
Commit fcb981478121 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[views] Import _ from cubicweb rather that defining _ = unicode

The latter does not work with Python 3.
parent d6dd8f55f421
No related branches found
No related tags found
No related merge requests found
......@@ -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() &
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment