Use cubicweb._
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 19 Oct 2015 14:29:53 +0200
changeset 10817 7b154e0fa194
parent 10816 d4a26e94f54a
child 10818 8cdf9965b2b8
Use cubicweb._
misc/migration/postcreate.py
server/test/data-migractions/migratedapp/schema.py
server/test/data-migractions/schema.py
server/test/data/schema.py
uilib.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()))
--- 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)
--- 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__ = {
--- 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__ = {
--- 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