misc: import N_ instead of relying on builtin (#40373)
This commit is contained in:
parent
556bafca11
commit
3c45b4bd14
|
@ -2,7 +2,7 @@ from quixote import get_publisher, redirect, get_request
|
|||
from quixote.directory import Directory, AccessControlled
|
||||
from quixote.html import TemplateIO, htmltext
|
||||
|
||||
from wcs.qommon import _
|
||||
from wcs.qommon import _, N_
|
||||
from wcs.qommon import get_cfg, get_logger
|
||||
from wcs.qommon.form import Form, StringWidget, CheckboxWidget, SingleSelectWidget
|
||||
from wcs.qommon.backoffice.menu import html_top
|
||||
|
|
|
@ -4,7 +4,7 @@ import time
|
|||
from quixote import get_request, get_publisher, get_session
|
||||
from quixote.directory import Directory
|
||||
|
||||
from wcs.qommon import _
|
||||
from wcs.qommon import _, N_
|
||||
from wcs.qommon.substitution import Substitutions
|
||||
from wcs.qommon.form import Form, ValidatedStringWidget
|
||||
from wcs.qommon import get_logger
|
||||
|
|
|
@ -8,7 +8,7 @@ import wcs.admin.root
|
|||
import wcs.root
|
||||
from wcs.roles import get_user_roles
|
||||
|
||||
from wcs.qommon import _
|
||||
from wcs.qommon import _, N_
|
||||
from wcs.qommon import errors, get_cfg
|
||||
from wcs.qommon.form import *
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ from quixote import redirect
|
|||
from quixote.directory import Directory
|
||||
from quixote.html import TemplateIO, htmltext
|
||||
|
||||
from wcs.qommon import _
|
||||
from wcs.qommon import _, N_
|
||||
from wcs.qommon import misc
|
||||
from wcs.categories import Category
|
||||
from wcs.qommon.form import *
|
||||
|
|
|
@ -10,7 +10,7 @@ from quixote.directory import AccessControlled, Directory
|
|||
from quixote.html import TemplateIO, htmltext
|
||||
from quixote.util import StaticFile, FileStream
|
||||
|
||||
from wcs.qommon import _
|
||||
from wcs.qommon import _, N_
|
||||
from wcs.qommon import template
|
||||
from wcs.qommon.form import *
|
||||
from wcs.qommon import get_cfg, get_logger
|
||||
|
|
|
@ -22,7 +22,7 @@ try:
|
|||
except ImportError:
|
||||
pass
|
||||
|
||||
from wcs.qommon import _
|
||||
from wcs.qommon import _, N_
|
||||
from wcs.qommon import force_str
|
||||
from wcs.qommon import errors, get_logger, get_cfg, emails
|
||||
from wcs.qommon.storage import StorableObject
|
||||
|
|
|
@ -12,7 +12,7 @@ import wcs
|
|||
import wcs.admin.root
|
||||
from wcs.formdef import FormDef
|
||||
|
||||
from wcs.qommon import _
|
||||
from wcs.qommon import _, N_
|
||||
from wcs.qommon import errors, misc, template, get_logger
|
||||
from wcs.qommon.form import *
|
||||
from wcs.qommon.admin.emails import EmailsDirectory
|
||||
|
|
|
@ -22,7 +22,7 @@ import wcs
|
|||
import wcs.root
|
||||
from wcs import qommon
|
||||
from wcs.forms.root import RootDirectory as FormsRootDirectory
|
||||
from wcs.qommon import get_cfg, get_logger
|
||||
from wcs.qommon import N_, get_cfg, get_logger
|
||||
from wcs.qommon import template
|
||||
from wcs.qommon import errors
|
||||
from wcs.qommon.form import *
|
||||
|
|
|
@ -2,7 +2,7 @@ from quixote import get_request, get_publisher, get_response
|
|||
from qommon.publisher import get_publisher_class
|
||||
from quixote.html import htmltext
|
||||
|
||||
from wcs.qommon import _
|
||||
from wcs.qommon import _, N_
|
||||
from wcs.qommon import template
|
||||
from wcs.qommon.admin.texts import TextsDirectory
|
||||
from wcs.categories import Category
|
||||
|
|
Reference in New Issue