# HG changeset patch # User Julien Cristau # Date 1445257793 -7200 # Node ID 7b154e0fa1942284ad1e6fcec91216d68687ca64 # Parent d4a26e94f54a7c56d826fb44545996f778a0e3f6 Use cubicweb._ diff -r d4a26e94f54a -r 7b154e0fa194 misc/migration/postcreate.py --- a/misc/migration/postcreate.py Mon Oct 19 14:28:30 2015 +0200 +++ b/misc/migration/postcreate.py Mon Oct 19 14:29:53 2015 +0200 @@ -20,6 +20,9 @@ from six import text_type +from cubicweb import _ + + # insert versions create_entity('CWProperty', pkey=u'system.version.cubicweb', value=text_type(config.cubicweb_version())) diff -r d4a26e94f54a -r 7b154e0fa194 server/test/data-migractions/migratedapp/schema.py --- a/server/test/data-migractions/migratedapp/schema.py Mon Oct 19 14:28:30 2015 +0200 +++ b/server/test/data-migractions/migratedapp/schema.py Mon Oct 19 14:29:53 2015 +0200 @@ -21,6 +21,7 @@ SubjectRelation, Bytes, RichString, String, Int, Boolean, Datetime, Date, Float) from yams.constraints import SizeConstraint, UniqueConstraint +from cubicweb import _ from cubicweb.schema import (WorkflowableEntityType, RQLConstraint, RQLVocabularyConstraint, ERQLExpression, RRQLExpression) diff -r d4a26e94f54a -r 7b154e0fa194 server/test/data-migractions/schema.py --- a/server/test/data-migractions/schema.py Mon Oct 19 14:28:30 2015 +0200 +++ b/server/test/data-migractions/schema.py Mon Oct 19 14:29:53 2015 +0200 @@ -24,6 +24,8 @@ RQLConstraint, RQLUniqueConstraint, RQLVocabularyConstraint, ERQLExpression, RRQLExpression) +from cubicweb import _ + class Affaire(WorkflowableEntityType): __permissions__ = { diff -r d4a26e94f54a -r 7b154e0fa194 server/test/data/schema.py --- a/server/test/data/schema.py Mon Oct 19 14:28:30 2015 +0200 +++ b/server/test/data/schema.py Mon Oct 19 14:29:53 2015 +0200 @@ -24,6 +24,7 @@ RQLConstraint, RQLUniqueConstraint, RQLVocabularyConstraint, ERQLExpression, RRQLExpression) +from cubicweb import _ class Affaire(WorkflowableEntityType): __permissions__ = { diff -r d4a26e94f54a -r 7b154e0fa194 uilib.py --- a/uilib.py Mon Oct 19 14:28:30 2015 +0200 +++ b/uilib.py Mon Oct 19 14:29:53 2015 +0200 @@ -34,6 +34,7 @@ from logilab.common.date import ustrftime from logilab.common.deprecation import deprecated +from cubicweb import _ from cubicweb.utils import js_dumps