mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Remove some unnecessary imports from the pgadmin/__init__.py, and
removed the file hooks.py, which is not used any more with new infrastructure.
This commit is contained in:
parent
000c76871f
commit
39d432ca2c
@ -16,15 +16,15 @@ from flask.ext.security import Security, SQLAlchemyUserDatastore
|
|||||||
from flask_security.utils import login_user
|
from flask_security.utils import login_user
|
||||||
from flask_mail import Mail
|
from flask_mail import Mail
|
||||||
from htmlmin.minify import html_minify
|
from htmlmin.minify import html_minify
|
||||||
from pgadmin.settings.settings_model import db, Role, User, Version
|
from pgadmin.model import db, Role, User, Version
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from werkzeug.local import LocalProxy
|
from werkzeug.local import LocalProxy
|
||||||
from pgadmin.utils import PgAdminModule, driver
|
from pgadmin.utils import PgAdminModule, driver
|
||||||
from werkzeug.utils import find_modules
|
from werkzeug.utils import find_modules
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
||||||
# Configuration settings
|
# Configuration settings
|
||||||
import config
|
import config
|
||||||
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
##########################################################################
|
|
||||||
#
|
|
||||||
# pgAdmin 4 - PostgreSQL Tools
|
|
||||||
#
|
|
||||||
# Copyright (C) 2013 - 2016, The pgAdmin Development Team
|
|
||||||
# This software is released under the PostgreSQL Licence
|
|
||||||
#
|
|
||||||
##########################################################################
|
|
||||||
|
|
||||||
"""Browser integration functions for settings."""
|
|
||||||
|
|
||||||
from flask import url_for
|
|
||||||
|
|
||||||
def get_scripts():
|
|
||||||
"""Return a list of script URLs to include in the rendered page header"""
|
|
||||||
return [ url_for('settings.script') ]
|
|
Loading…
Reference in New Issue
Block a user