*: fix legacy imports
This change reorganizes imports and renames the legacy flask extensions.
This commit is contained in:
parent
0d805905dc
commit
fc7301be0d
23 changed files with 179 additions and 139 deletions
|
@ -1,15 +1,17 @@
|
|||
import logging
|
||||
import json
|
||||
|
||||
from flask import make_response, jsonify
|
||||
from flask_restful.utils.cors import crossdomain
|
||||
|
||||
from app import app
|
||||
from util.useremails import CannotSendEmailException
|
||||
from util.config.provider.baseprovider import CannotWriteConfigException
|
||||
from flask.ext.restful.utils.cors import crossdomain
|
||||
from data import model
|
||||
from util.config.provider.baseprovider import CannotWriteConfigException
|
||||
from util.useremails import CannotSendEmailException
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@app.errorhandler(model.DataModelException)
|
||||
def handle_dme(ex):
|
||||
logger.exception(ex)
|
||||
|
|
Reference in a new issue