Use cubicweb._
authorRémi Cardona <remi.cardona@logilab.fr>
Tue, 08 Dec 2015 16:28:20 +0100
changeset 10969 b4de8b1cc135
parent 10968 9c6c3e68422e
child 10973 0939ad2edf63
Use cubicweb._
web/test/data/schema.py
web/views/editcontroller.py
--- a/web/test/data/schema.py	Tue Dec 08 16:27:05 2015 +0100
+++ b/web/test/data/schema.py	Tue Dec 08 16:28:20 2015 +0100
@@ -20,6 +20,9 @@
                             String, Int, Datetime, Boolean, Float)
 from yams.constraints import IntervalBoundConstraint
 
+from cubicweb import _
+
+
 class Salesterm(EntityType):
     described_by_test = SubjectRelation('File', cardinality='1*',
                                         composite='subject', inlined=True)
--- a/web/views/editcontroller.py	Tue Dec 08 16:27:05 2015 +0100
+++ b/web/views/editcontroller.py	Tue Dec 08 16:28:20 2015 +0100
@@ -31,7 +31,7 @@
 
 from rql.utils import rqlvar_maker
 
-from cubicweb import Binary, ValidationError
+from cubicweb import _, Binary, ValidationError
 from cubicweb.view import EntityAdapter
 from cubicweb.predicates import is_instance
 from cubicweb.web import (INTERNAL_FIELD_VALUE, RequestError, NothingToEdit,