isort
This commit is contained in:
parent
4107d67832
commit
f79abb05cd
|
@ -1,24 +1,31 @@
|
||||||
import json
|
import json
|
||||||
from flask_wtf import FlaskForm
|
|
||||||
from wtforms import StringField, validators, MultipleFileField, FloatField, IntegerField, \
|
|
||||||
HiddenField, DateField, TextAreaField, SelectField
|
|
||||||
from flask import g, request
|
|
||||||
from sqlalchemy.util import OrderedSet
|
|
||||||
from json.decoder import JSONDecodeError
|
from json.decoder import JSONDecodeError
|
||||||
|
|
||||||
|
from flask import g, request
|
||||||
|
from flask_wtf import FlaskForm
|
||||||
|
from sqlalchemy.util import OrderedSet
|
||||||
|
from wtforms import (DateField, FloatField, HiddenField, IntegerField,
|
||||||
|
MultipleFileField, SelectField, StringField,
|
||||||
|
TextAreaField, validators)
|
||||||
|
|
||||||
from ereuse_devicehub.db import db
|
from ereuse_devicehub.db import db
|
||||||
from ereuse_devicehub.resources.device.models import Device, Computer, Smartphone, Cellphone, \
|
from ereuse_devicehub.resources.action.models import (Action, RateComputer,
|
||||||
Tablet, Monitor, Mouse, Keyboard, \
|
Snapshot, VisualTest)
|
||||||
MemoryCardReader, SAI
|
from ereuse_devicehub.resources.action.rate.v1_0 import CannotRate
|
||||||
from ereuse_devicehub.resources.action.models import Action, RateComputer, Snapshot, VisualTest
|
from ereuse_devicehub.resources.action.schemas import \
|
||||||
from ereuse_devicehub.resources.action.schemas import Snapshot as SnapshotSchema
|
Snapshot as SnapshotSchema
|
||||||
|
from ereuse_devicehub.resources.action.views.snapshot import (move_json,
|
||||||
|
save_json)
|
||||||
|
from ereuse_devicehub.resources.device.models import (SAI, Cellphone, Computer,
|
||||||
|
Device, Keyboard,
|
||||||
|
MemoryCardReader,
|
||||||
|
Monitor, Mouse,
|
||||||
|
Smartphone, Tablet)
|
||||||
|
from ereuse_devicehub.resources.device.sync import Sync
|
||||||
|
from ereuse_devicehub.resources.enums import Severity, SnapshotSoftware
|
||||||
from ereuse_devicehub.resources.lot.models import Lot
|
from ereuse_devicehub.resources.lot.models import Lot
|
||||||
from ereuse_devicehub.resources.tag.model import Tag
|
from ereuse_devicehub.resources.tag.model import Tag
|
||||||
from ereuse_devicehub.resources.enums import SnapshotSoftware, Severity
|
|
||||||
from ereuse_devicehub.resources.user.exceptions import InsufficientPermission
|
from ereuse_devicehub.resources.user.exceptions import InsufficientPermission
|
||||||
from ereuse_devicehub.resources.action.rate.v1_0 import CannotRate
|
|
||||||
from ereuse_devicehub.resources.device.sync import Sync
|
|
||||||
from ereuse_devicehub.resources.action.views.snapshot import save_json, move_json
|
|
||||||
|
|
||||||
|
|
||||||
class LotDeviceForm(FlaskForm):
|
class LotDeviceForm(FlaskForm):
|
||||||
|
|
|
@ -1,14 +1,18 @@
|
||||||
import flask
|
|
||||||
import datetime
|
import datetime
|
||||||
from flask.views import View
|
|
||||||
from flask import Blueprint, url_for, request
|
|
||||||
from flask_login import login_required, current_user
|
|
||||||
|
|
||||||
|
import flask
|
||||||
|
from flask import Blueprint, request, url_for
|
||||||
|
from flask.views import View
|
||||||
|
from flask_login import current_user, login_required
|
||||||
|
|
||||||
|
from ereuse_devicehub.inventory.forms import (AllocateForm, LotDeviceForm,
|
||||||
|
LotForm, NewActionForm,
|
||||||
|
NewDeviceForm, TagDeviceForm,
|
||||||
|
TagForm, TagUnnamedForm,
|
||||||
|
UploadSnapshotForm)
|
||||||
|
from ereuse_devicehub.resources.device.models import Device
|
||||||
from ereuse_devicehub.resources.lot.models import Lot
|
from ereuse_devicehub.resources.lot.models import Lot
|
||||||
from ereuse_devicehub.resources.tag.model import Tag
|
from ereuse_devicehub.resources.tag.model import Tag
|
||||||
from ereuse_devicehub.resources.device.models import Device
|
|
||||||
from ereuse_devicehub.inventory.forms import LotDeviceForm, LotForm, UploadSnapshotForm, \
|
|
||||||
NewDeviceForm, TagForm, TagUnnamedForm, TagDeviceForm, NewActionForm, AllocateForm
|
|
||||||
|
|
||||||
# TODO(@slamora): rename base 'inventory.devices' --> 'inventory'
|
# TODO(@slamora): rename base 'inventory.devices' --> 'inventory'
|
||||||
devices = Blueprint('inventory.devices', __name__, url_prefix='/inventory')
|
devices = Blueprint('inventory.devices', __name__, url_prefix='/inventory')
|
||||||
|
|
Reference in a new issue