Commit a2bd29c4 authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

Fix DeprecationWarning: [3.22] Use 'from cubicweb import _'

parent 2ea58ad30795
# expense workflow
from cubicweb import _
wf = add_workflow(_('expense workflow'), 'Expense')
draft = wf.add_state(_('draft'), initial=True)
submitted = wf.add_state(_('submitted'))
......
......@@ -3,6 +3,7 @@ from yams.buildobjs import (EntityType, RelationType, SubjectRelation,
from cubicweb.schema import (WorkflowableEntityType, RQLConstraint,
RRQLExpression, ERQLExpression)
from cubicweb import _
from cubicweb.schemas.base import CWUser
CWUser.add_relation(String(maxsize=32, description=_('social security number')), name='ssnum')
......
......@@ -10,6 +10,7 @@ from itertools import groupby
from logilab.common.textutils import normalize_text
from cubicweb import _
from cubicweb.predicates import is_instance, is_in_state
from cubicweb.server import hook
from cubicweb.sobjects import notification
......
......@@ -18,6 +18,9 @@ from cubicweb.web import uicfg, action, component
from cubicweb.web.views import (primary, autoform, workflow, urlrewrite,
ibreadcrumbs, tableview)
from cubicweb import _
class ExpenseLineIBreadCrumbsAdapter(ibreadcrumbs.IBreadCrumbsAdapter):
__select__ = is_instance('IBreadCrumbs')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment