Loading src/webui/service/__init__.py +10 −10 Original line number Diff line number Diff line Loading @@ -107,8 +107,8 @@ def create_app(use_config=None, web_app_root=None): from webui.service.link.routes import link # pylint: disable=import-outside-toplevel app.register_blueprint(link) from webui.service.qkd_app.routes import qkd_app as _qkd_app # pylint: disable=import-outside-toplevel app.register_blueprint(_qkd_app) from webui.service.qkd_app.routes import qkd_app # pylint: disable=import-outside-toplevel app.register_blueprint(qkd_app) from webui.service.policy_rule.routes import policy_rule # pylint: disable=import-outside-toplevel app.register_blueprint(policy_rule) Loading src/webui/service/qkd_app/routes.py +5 −5 Original line number Diff line number Diff line Loading @@ -25,12 +25,12 @@ from qkd_app.client.QKDAppClient import QKDAppClient LOGGER = logging.getLogger(__name__) app = Blueprint('qkd_app', __name__, url_prefix='/qkd_app') qkd_app = Blueprint('qkd_app', __name__, url_prefix='/qkd_app') qkd_app_client = QKDAppClient() context_client = ContextClient() @app.get('/') @qkd_app.get('/') def home(): if 'context_uuid' not in session or 'topology_uuid' not in session: flash("Please select a context!", "warning") Loading Loading @@ -68,10 +68,10 @@ def home(): context_client.close() return render_template( 'app/home.html', apps=apps, device_names=device_names, ate=QKDAppTypesEnum, ase=QKDAppStatusEnum) 'qkd_app/home.html', apps=apps, device_names=device_names, ate=QKDAppTypesEnum, ase=QKDAppStatusEnum) @app.route('detail/<path:app_uuid>', methods=('GET', 'POST')) @qkd_app.route('detail/<path:app_uuid>', methods=('GET', 'POST')) def detail(app_uuid: str): ''' context_client.connect() Loading @@ -87,7 +87,7 @@ def detail(app_uuid: str): ''' pass @app.get('<path:app_uuid>/delete') @qkd_app.get('<path:app_uuid>/delete') def delete(app_uuid): ''' try: Loading Loading
src/webui/service/__init__.py +10 −10 Original line number Diff line number Diff line Loading @@ -107,8 +107,8 @@ def create_app(use_config=None, web_app_root=None): from webui.service.link.routes import link # pylint: disable=import-outside-toplevel app.register_blueprint(link) from webui.service.qkd_app.routes import qkd_app as _qkd_app # pylint: disable=import-outside-toplevel app.register_blueprint(_qkd_app) from webui.service.qkd_app.routes import qkd_app # pylint: disable=import-outside-toplevel app.register_blueprint(qkd_app) from webui.service.policy_rule.routes import policy_rule # pylint: disable=import-outside-toplevel app.register_blueprint(policy_rule) Loading
src/webui/service/qkd_app/routes.py +5 −5 Original line number Diff line number Diff line Loading @@ -25,12 +25,12 @@ from qkd_app.client.QKDAppClient import QKDAppClient LOGGER = logging.getLogger(__name__) app = Blueprint('qkd_app', __name__, url_prefix='/qkd_app') qkd_app = Blueprint('qkd_app', __name__, url_prefix='/qkd_app') qkd_app_client = QKDAppClient() context_client = ContextClient() @app.get('/') @qkd_app.get('/') def home(): if 'context_uuid' not in session or 'topology_uuid' not in session: flash("Please select a context!", "warning") Loading Loading @@ -68,10 +68,10 @@ def home(): context_client.close() return render_template( 'app/home.html', apps=apps, device_names=device_names, ate=QKDAppTypesEnum, ase=QKDAppStatusEnum) 'qkd_app/home.html', apps=apps, device_names=device_names, ate=QKDAppTypesEnum, ase=QKDAppStatusEnum) @app.route('detail/<path:app_uuid>', methods=('GET', 'POST')) @qkd_app.route('detail/<path:app_uuid>', methods=('GET', 'POST')) def detail(app_uuid: str): ''' context_client.connect() Loading @@ -87,7 +87,7 @@ def detail(app_uuid: str): ''' pass @app.get('<path:app_uuid>/delete') @qkd_app.get('<path:app_uuid>/delete') def delete(app_uuid): ''' try: Loading