Browse Source

Use Flask-BabelEx as it is already a requirement for Flask-Security.

develop
Sam Black 4 years ago
parent
commit
d312a7c913
Signed by: samwwwblack GPG Key ID: 0FF0223994EA47D8
  1. 2
      cupola/api/view.py
  2. 2
      cupola/utils.py
  3. 2
      cupola/views/events.py
  4. 2
      cupola/views/projects.py
  5. 2
      cupola/views/users.py
  6. 2
      requirements.txt
  7. 2
      run.py

2
cupola/api/view.py

@ -28,7 +28,7 @@ from flask import request
from flask import render_template
from flask import url_for
from flask_babel import gettext
from flask_babelex import gettext
from flask_mail import Message
from cupola.api.queue import rq_manager

2
cupola/utils.py

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from flask import request
from flask_babel import Babel
from flask_babelex import Babel
from flask_mail import Mail
from flask_security import current_user

2
cupola/views/events.py

@ -28,7 +28,7 @@ from flask import render_template
from flask import request
from flask import url_for
from flask_babel import gettext
from flask_babelex import gettext
from flask_security import current_user
from flask_security import login_required

2
cupola/views/projects.py

@ -23,7 +23,7 @@ from flask import render_template
from flask import request
from flask import url_for
from flask_babel import gettext
from flask_babelex import gettext
from flask_security import current_user
from flask_security import login_required
from flask_security import roles_accepted

2
cupola/views/users.py

@ -23,7 +23,7 @@ from flask import render_template
from flask import request
from flask import url_for
from flask_babel import gettext
from flask_babelex import gettext
from flask_security import login_required
from flask_security import roles_required
from flask_security.utils import hash_password

2
requirements.txt

@ -15,4 +15,4 @@ eventlet
raven
arrow
sqlalchemy-utils
Flask-Babel
Flask-BabelEx

2
run.py

@ -22,7 +22,7 @@ import click
from datetime import datetime
from flask import current_app
from flask_babel import gettext
from flask_babelex import gettext
from flask_migrate import upgrade as db_upgrade
from flask_security.utils import hash_password
from sqlalchemy import exc

Loading…
Cancel
Save