From fb2abc778f08b68876fa782e235933910cebfa6b Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Wed, 3 May 2017 15:55:02 +0530 Subject: [PATCH] Change to new import syntax --- alembic/env.py | 2 +- manage.py | 6 +++--- peopleflow/__init__.py | 8 ++++---- peopleflow/models/user.py | 2 +- peopleflow/views/kiosk.py | 2 +- peopleflow/views/login.py | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/alembic/env.py b/alembic/env.py index bdf54cd..fc8b172 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -2,7 +2,7 @@ from alembic import context from sqlalchemy import engine_from_config, pool from logging.config import fileConfig -from flask.ext.alembic import FlaskAlembicConfig +from flask_alembic import FlaskAlembicConfig # this is the Alembic Config object, which provides # access to the values within the .ini file in use. diff --git a/manage.py b/manage.py index da3089c..477d494 100755 --- a/manage.py +++ b/manage.py @@ -1,8 +1,8 @@ #!/usr/bin/env python -from flask.ext.script import Manager, Server, Option, prompt_bool -from flask.ext.script.commands import Clean, ShowUrls -from flask.ext.alembic import ManageMigrations, FlaskAlembicConfig +from flask_script import Manager, Server, Option, prompt_bool +from flask_script.commands import Clean, ShowUrls +from flask_alembic import ManageMigrations, FlaskAlembicConfig from alembic import command from peopleflow import app, init_for diff --git a/peopleflow/__init__.py b/peopleflow/__init__.py index 255d6a2..2df966c 100755 --- a/peopleflow/__init__.py +++ b/peopleflow/__init__.py @@ -7,10 +7,10 @@ from os import environ from flask import Flask -from flask.ext.assets import Environment, Bundle -from flask.ext.lastuser import Lastuser -from flask.ext.lastuser.sqlalchemy import UserManager -from flask.ext.mail import Mail, Message +from flask_assets import Environment, Bundle +from flask_lastuser import Lastuser +from flask_lastuser.sqlalchemy import UserManager +from flask_mail import Mail, Message from baseframe import baseframe, assets, Version import coaster.app from ._version import __version__ diff --git a/peopleflow/models/user.py b/peopleflow/models/user.py index ca68da7..07dbbc2 100644 --- a/peopleflow/models/user.py +++ b/peopleflow/models/user.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- from flask import g -from flask.ext.lastuser.sqlalchemy import UserBase +from flask_lastuser.sqlalchemy import UserBase from . import db diff --git a/peopleflow/views/kiosk.py b/peopleflow/views/kiosk.py index 9695d75..7a67314 100644 --- a/peopleflow/views/kiosk.py +++ b/peopleflow/views/kiosk.py @@ -17,7 +17,7 @@ from coaster.utils import make_name from coaster.views import jsonp, load_model, load_models from coaster.gfm import markdown -from flask.ext.mail import Mail, Message +from flask_mail import Mail, Message @app.route('/event//kiosk/new', methods=['GET', 'POST']) diff --git a/peopleflow/views/login.py b/peopleflow/views/login.py index 7f3c1df..506d249 100644 --- a/peopleflow/views/login.py +++ b/peopleflow/views/login.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- from flask import redirect, flash, Markup, escape -from flask.ext.lastuser import LastUser -from flask.ext.lastuser.sqlalchemy import UserManager +from flask_lastuser import LastUser +from flask_lastuser.sqlalchemy import UserManager from coaster.views import get_next_url from .. import app