# HG changeset patch # User RĂ©mi Cardona # Date 1449588500 -3600 # Node ID b4de8b1cc1355fbd5df11f902445d03cf8de8bf8 # Parent 9c6c3e68422ec8eb410dfae45047ee58133a5c1b Use cubicweb._ diff -r 9c6c3e68422e -r b4de8b1cc135 web/test/data/schema.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) diff -r 9c6c3e68422e -r b4de8b1cc135 web/views/editcontroller.py --- 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,