misc: remove unused import lines
This commit is contained in:
parent
57eb8fddbb
commit
40e5f9dd4c
|
@ -15,7 +15,6 @@
|
|||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from django.utils import six
|
||||
from django.utils.encoding import force_text
|
||||
|
||||
from quixote import get_publisher, get_response, get_request, get_session, redirect
|
||||
from quixote.directory import Directory
|
||||
|
|
|
@ -28,14 +28,12 @@ from django.http import HttpResponse, HttpResponseBadRequest
|
|||
|
||||
from .qommon import _
|
||||
from .qommon import misc
|
||||
from .qommon.evalutils import make_datetime
|
||||
from .qommon.errors import (AccessForbiddenError, QueryError, TraversalError,
|
||||
UnknownNameIdAccessForbiddenError, RequestError)
|
||||
from .qommon.form import ComputedExpressionWidget, ConditionWidget
|
||||
|
||||
from wcs.categories import Category
|
||||
from wcs.conditions import Condition, ValidationError
|
||||
from wcs.data_sources import NamedDataSource
|
||||
from wcs.carddef import CardDef
|
||||
from wcs.formdef import FormDef
|
||||
from wcs.roles import Role, logged_users_role
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
from quixote import get_publisher, get_response
|
||||
from quixote.html import htmltext
|
||||
|
||||
from .qommon import _
|
||||
from .qommon.storage import StorableObject
|
||||
from .qommon.misc import simplify
|
||||
from .qommon.substitution import Substitutions
|
||||
|
|
|
@ -20,7 +20,6 @@ from threading import Lock
|
|||
from contextlib import contextmanager
|
||||
|
||||
from django.utils import six
|
||||
from django.utils.six.moves import configparser as ConfigParser
|
||||
|
||||
from quixote import get_publisher, get_request
|
||||
from quixote.errors import PublishError
|
||||
|
@ -36,7 +35,6 @@ from .qommon import force_str, template
|
|||
from .qommon.publisher import get_cfg, set_publisher_class
|
||||
from .publisher import WcsPublisher
|
||||
from .qommon.http_request import HTTPRequest
|
||||
from .qommon.http_response import HTTPResponse
|
||||
|
||||
|
||||
class TemplateWithFallbackView(TemplateView):
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
|
||||
from quixote import get_publisher
|
||||
from django.template import Context, Template, TemplateSyntaxError
|
||||
from django.utils.encoding import force_text
|
||||
|
|
|
@ -37,8 +37,6 @@ from ..qommon.storage import atomic_write
|
|||
from wcs.admin.settings import UserFieldsFormDef
|
||||
from wcs.fields import StringField, EmailField, DateField
|
||||
|
||||
from django.utils.encoding import force_bytes
|
||||
|
||||
|
||||
class NoChange(Exception):
|
||||
pass
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
from __future__ import print_function
|
||||
|
||||
import json
|
||||
import os
|
||||
|
||||
from django.core.management.base import CommandError
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ import xml.etree.ElementTree as ET
|
|||
from django.utils import six
|
||||
from django.utils.encoding import force_text, force_bytes
|
||||
from django.utils.six.moves.urllib import parse as urllib
|
||||
from django.utils.six.moves.urllib import parse as urlparse
|
||||
|
||||
from quixote import get_publisher, get_request, get_session
|
||||
from quixote.html import TemplateIO
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
import time
|
||||
|
||||
from quixote import get_publisher, get_request, get_response, get_session, redirect
|
||||
|
|
|
@ -16,9 +16,7 @@
|
|||
|
||||
import copy
|
||||
import json
|
||||
import re
|
||||
import time
|
||||
import sys
|
||||
|
||||
try:
|
||||
import qrcode
|
||||
|
@ -48,7 +46,6 @@ from ..qommon.form import *
|
|||
from ..qommon.logger import BotFilter
|
||||
from ..qommon import emails
|
||||
|
||||
from wcs import data_sources
|
||||
from wcs.categories import Category
|
||||
from wcs.formdef import FormDef
|
||||
from wcs.formdata import FormData
|
||||
|
|
|
@ -41,14 +41,12 @@ except ImportError:
|
|||
|
||||
from django.template.loader import render_to_string
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.six import StringIO
|
||||
|
||||
from quixote import get_request, get_response, get_publisher
|
||||
|
||||
from .publisher import get_cfg, get_logger
|
||||
from . import force_str
|
||||
from . import errors
|
||||
from . import tokens
|
||||
from .admin.emails import EmailsDirectory
|
||||
from .template import Template
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@ get_global_eval_dict.
|
|||
"""
|
||||
|
||||
import datetime
|
||||
import re
|
||||
import time
|
||||
|
||||
from django.utils.encoding import force_bytes
|
||||
|
|
|
@ -224,7 +224,6 @@ Directives
|
|||
#
|
||||
|
||||
import datetime
|
||||
import string
|
||||
import re
|
||||
import os
|
||||
import cgi
|
||||
|
|
|
@ -23,7 +23,6 @@ import time
|
|||
import base64
|
||||
import json
|
||||
import subprocess
|
||||
import tempfile
|
||||
import unicodedata
|
||||
import hashlib
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ import traceback
|
|||
builtins.__dict__['N_'] = lambda x: x
|
||||
|
||||
import linecache
|
||||
import requests
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
from django.conf import settings
|
||||
|
@ -49,7 +48,6 @@ from django.utils import six
|
|||
from django.utils import translation
|
||||
from django.utils.encoding import force_text, force_bytes
|
||||
from django.utils.six import StringIO
|
||||
from django.utils.translation import gettext, ngettext
|
||||
|
||||
from quixote.publish import Publisher, get_request, get_response, get_publisher, redirect
|
||||
from .http_request import HTTPRequest
|
||||
|
|
|
@ -35,7 +35,6 @@ from quixote import get_session, get_session_manager
|
|||
from . import misc
|
||||
from .publisher import get_cfg, get_logger
|
||||
from . import _, force_str
|
||||
from . import template
|
||||
from .template import error_page
|
||||
from wcs.roles import Role
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls import url
|
||||
|
||||
from . import compat
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
import os
|
||||
|
||||
import django.template.loaders.filesystem
|
||||
from django.conf import settings
|
||||
|
||||
from .qommon.template import get_theme_directory
|
||||
from .qommon.publisher import get_cfg, get_publisher
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
|
||||
from quixote import get_publisher, get_request, get_response
|
||||
|
||||
from .forms.root import RootDirectory as FormsRootDirectory
|
||||
from .qommon.admin.texts import TextsDirectory
|
||||
from .qommon import template
|
||||
from . import compat
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from quixote import get_publisher
|
||||
|
||||
from ..qommon import _
|
||||
from wcs.qommon.form import SingleSelectWidget
|
||||
from wcs.workflows import WorkflowStatusItem, register_item_class
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
import itertools
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
from django.utils import six
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import cgi
|
||||
|
||||
from ..qommon import _, ezt
|
||||
from ..qommon.form import *
|
||||
from ..qommon.template import TemplateError
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import datetime
|
||||
import json
|
||||
import sys
|
||||
import traceback
|
||||
import xml.etree.ElementTree as ET
|
||||
|
|
|
@ -27,7 +27,6 @@ import uuid
|
|||
|
||||
from django.utils import six
|
||||
from django.utils.encoding import force_text
|
||||
from django.utils.six import StringIO
|
||||
|
||||
from quixote import get_request, get_response, redirect
|
||||
|
||||
|
|
Loading…
Reference in New Issue