mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Fix deprecation issues (ExtDeprecationWarning)
This commit is contained in:
parent
67331dcf2a
commit
5d009d839b
5 changed files with 8 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from flask import Blueprint, request
|
||||
from flask.ext.rest import RESTResource, need_auth
|
||||
from flask_rest import RESTResource, need_auth
|
||||
|
||||
from models import db, Project, Person, Bill
|
||||
from forms import (ProjectForm, EditProjectForm, MemberForm,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from flask.ext.wtf import DateField, DecimalField, Email, Form, PasswordField, \
|
||||
from flask_wtf import DateField, DecimalField, Email, Form, PasswordField, \
|
||||
Required, SelectField, SelectMultipleField, SubmitField, TextAreaField, \
|
||||
TextField, ValidationError
|
||||
from flask.ext.babel import lazy_gettext as _
|
||||
from flask_babel import lazy_gettext as _
|
||||
from flask import request
|
||||
|
||||
from wtforms.widgets import html_params
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from collections import defaultdict
|
||||
|
||||
from datetime import datetime
|
||||
from flask.ext.sqlalchemy import SQLAlchemy, BaseQuery
|
||||
from flask_sqlalchemy import SQLAlchemy, BaseQuery
|
||||
from flask import g
|
||||
|
||||
from sqlalchemy import orm
|
||||
|
|
|
@ -2,8 +2,8 @@ import os
|
|||
import warnings
|
||||
|
||||
from flask import Flask, g, request, session
|
||||
from flask.ext.babel import Babel
|
||||
from flask.ext.migrate import Migrate, upgrade, stamp
|
||||
from flask_babel import Babel
|
||||
from flask_migrate import Migrate, upgrade, stamp
|
||||
from raven.contrib.flask import Sentry
|
||||
|
||||
from web import main, db, mail
|
||||
|
|
|
@ -11,8 +11,8 @@ and `add_project_id` for a quick overview)
|
|||
|
||||
from flask import Blueprint, current_app, flash, g, redirect, \
|
||||
render_template, request, session, url_for
|
||||
from flask.ext.mail import Mail, Message
|
||||
from flask.ext.babel import get_locale, gettext as _
|
||||
from flask_mail import Mail, Message
|
||||
from flask_babel import get_locale, gettext as _
|
||||
from smtplib import SMTPRecipientsRefused
|
||||
import werkzeug
|
||||
from sqlalchemy import orm
|
||||
|
|
Loading…
Reference in a new issue