Update to Flask 1.0

This commit is contained in:
rubenwardy 2018-12-22 23:03:38 +00:00
parent 79f4e16286
commit 366ed9913e
13 changed files with 28 additions and 34 deletions

@ -20,7 +20,7 @@ from flask_user import *
from flask_gravatar import Gravatar from flask_gravatar import Gravatar
import flask_menu as menu import flask_menu as menu
from flask_mail import Mail from flask_mail import Mail
from flask.ext import markdown from flaskext.markdown import Markdown
from flask_github import GitHub from flask_github import GitHub
from flask_wtf.csrf import CsrfProtect from flask_wtf.csrf import CsrfProtect
from flask_flatpages import FlatPages from flask_flatpages import FlatPages
@ -32,7 +32,7 @@ app.config["FLATPAGES_EXTENSION"] = ".md"
app.config.from_pyfile(os.environ["FLASK_CONFIG"]) app.config.from_pyfile(os.environ["FLASK_CONFIG"])
menu.Menu(app=app) menu.Menu(app=app)
markdown.Markdown(app, extensions=["fenced_code"], safe_mode=True, output_format="html5") Markdown(app, extensions=["fenced_code"], safe_mode=True, output_format="html5")
github = GitHub(app) github = GitHub(app)
csrf = CsrfProtect(app) csrf = CsrfProtect(app)
mail = Mail(app) mail = Mail(app)

@ -16,7 +16,7 @@
import flask import flask
from flask.ext.sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy
from celery import Celery from celery import Celery
from celery.schedules import crontab from celery.schedules import crontab
from app import app from app import app

@ -16,7 +16,7 @@
import flask, json, re import flask, json, re
from flask.ext.sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy
from app import app from app import app
from app.models import * from app.models import *
from app.tasks import celery from app.tasks import celery

@ -17,7 +17,7 @@
import flask, json, os, git, tempfile, shutil import flask, json, os, git, tempfile, shutil
from git import GitCommandError from git import GitCommandError
from flask.ext.sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy
from urllib.error import HTTPError from urllib.error import HTTPError
import urllib.request import urllib.request
from urllib.parse import urlparse, quote_plus, urlsplit from urllib.parse import urlparse, quote_plus, urlsplit

@ -18,11 +18,8 @@
from app import app, pages from app import app, pages
from flask import * from flask import *
from flask_user import * from flask_user import *
from flask_login import login_user, logout_user
from app.models import * from app.models import *
import flask_menu as menu import flask_menu as menu
from flask.ext import markdown
from sqlalchemy import func
from werkzeug.contrib.cache import SimpleCache from werkzeug.contrib.cache import SimpleCache
from urllib.parse import urlparse from urllib.parse import urlparse
cache = SimpleCache() cache = SimpleCache()

@ -17,7 +17,7 @@
from flask import * from flask import *
from flask_user import * from flask_user import *
from flask.ext import menu import flask_menu as menu
from app import app from app import app
from app.models import * from app.models import *
from celery import uuid from celery import uuid

@ -17,7 +17,7 @@
from flask import * from flask import *
from flask_user import * from flask_user import *
from flask.ext import menu import flask_menu as menu
from app import app from app import app
from app.models import * from app.models import *
from app.tasks.importtasks import importRepoScreenshot, makeVCSRelease from app.tasks.importtasks import importRepoScreenshot, makeVCSRelease

@ -17,7 +17,6 @@
from flask import * from flask import *
from flask_user import * from flask_user import *
from flask.ext import menu
from app import app from app import app
from app.models import * from app.models import *

@ -17,7 +17,6 @@
from flask import * from flask import *
from flask_user import * from flask_user import *
from flask.ext import menu
from app import app from app import app
from app.models import * from app.models import *
from app.tasks.importtasks import makeVCSRelease from app.tasks.importtasks import makeVCSRelease

@ -17,7 +17,7 @@
from flask import * from flask import *
from flask_user import * from flask_user import *
from flask.ext import menu import flask_menu as menu
from app import app from app import app
from app.models import * from app.models import *

@ -17,7 +17,7 @@
from flask import * from flask import *
from flask_user import * from flask_user import *
from flask.ext import menu import flask_menu as menu
from app import app, csrf from app import app, csrf
from app.models import * from app.models import *
from app.tasks import celery, TaskError from app.tasks import celery, TaskError

@ -18,14 +18,12 @@
from flask import * from flask import *
from flask_user import * from flask_user import *
from flask_login import login_user, logout_user from flask_login import login_user, logout_user
from flask.ext import menu
from app import app from app import app
from app.models import * from app.models import *
from flask_wtf import FlaskForm from flask_wtf import FlaskForm
from flask_user.forms import RegisterForm
from wtforms import * from wtforms import *
from wtforms.validators import * from wtforms.validators import *
from app.utils import rank_required, randomString, loginUser from app.utils import randomString, loginUser
from app.tasks.forumtasks import checkForumAccount from app.tasks.forumtasks import checkForumAccount
from app.tasks.emails import sendVerifyEmail from app.tasks.emails import sendVerifyEmail
from app.tasks.phpbbparser import getProfile from app.tasks.phpbbparser import getProfile

@ -1,17 +1,18 @@
Flask>=0.12.2,<1.0 Flask~=1.0
Flask-SQLAlchemy>=2.3 Flask-FlatPages~=0.7
Flask-Login>=0.4.1 Flask-Gravatar~=0.5
Flask-User==0.6.19 Flask-Login~=0.4.1
Flask-Menu>=0.7.0 Flask-Markdown~=0.3
Flask-Markdown>=0.3 Flask-Menu~=0.7
GitHub-Flask>=3.2.0 Flask-Migrate~=2.3
pyScss==1.3.4 Flask-SQLAlchemy~=2.3
celery==4.1.1 Flask-User~=0.6
redis==2.10.6 GitHub-Flask~=3.2
beautifulsoup4==4.6.0
lxml==4.2.1 beautifulsoup4~=4.6
Flask-FlatPages==0.6 celery~=4.2
Flask-Migrate==2.1.1 GitPython~=2.1
pillow==5.1.0 lxml~=4.2
GitPython==2.1.10 pillow~=5.3
Flask-Gravatar=0.5.0 pyScss~=1.3
redis~=3.0