mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 14:10:05 -05:00
1) Replace Flask-BabelEx with Flask-Babel. Fixes #6088
2) Upgrade Flask to version 2. Fixes #7010
This commit is contained in:
1 parent
3a30f27153
commit
d644b4f94e
120 files changed
+211
-199
No files matched your search
@@ -13,8 +13,8 @@ from abc import abstractmethod
|
||||
|
||||
import flask
|
||||
from flask import render_template, current_app
|
||||
from flask.views import View, MethodViewType, with_metaclass
|
||||
from flask_babelex import gettext
|
||||
from flask.views import View, MethodViewType
|
||||
from flask_babel import gettext
|
||||
|
||||
from config import PG_DEFAULT_DRIVER
|
||||
from pgadmin.utils.ajax import make_json_response, precondition_required,\
|
||||
@@ -139,7 +139,7 @@ class PGChildModule(object):
|
||||
pass
|
||||
|
||||
|
||||
class NodeView(with_metaclass(MethodViewType, View)):
|
||||
class NodeView(View, metaclass=MethodViewType):
|
||||
"""
|
||||
A PostgreSQL Object has so many operaions/functions apart from CRUD
|
||||
(Create, Read, Update, Delete):
|
||||
|
||||
Reference in new issue
Block a user