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:
Ashesh Vashi 2016-02-29 23:08:05 +05:30
parent 000c76871f
commit 39d432ca2c
2 changed files with 2 additions and 18 deletions

View File

@ -16,15 +16,15 @@ from flask.ext.security import Security, SQLAlchemyUserDatastore
from flask_security.utils import login_user
from flask_mail import Mail
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 werkzeug.local import LocalProxy
from pgadmin.utils import PgAdminModule, driver
from werkzeug.utils import find_modules
import sys
import os
import logging
# Configuration settings
import config

View File

@ -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') ]