From 5188507400cd6aa03905225754ed1612ddcae55e Mon Sep 17 00:00:00 2001 From: Xavier Bustamante Talavera Date: Thu, 17 May 2018 09:59:17 +0200 Subject: [PATCH] Adapt to Flask 1.0 --- ereuse_devicehub/devicehub.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ereuse_devicehub/devicehub.py b/ereuse_devicehub/devicehub.py index 3c4b0c18..ac13a817 100644 --- a/ereuse_devicehub/devicehub.py +++ b/ereuse_devicehub/devicehub.py @@ -12,16 +12,22 @@ from teal.teal import Teal class Devicehub(Teal): test_client_class = Client - def __init__(self, config: ConfigClass, + def __init__(self, + config: ConfigClass, db: SQLAlchemy = db, import_name=__package__, - static_path=None, static_url_path=None, static_folder='static', + static_host=None, + host_matching=False, + subdomain_matching=False, template_folder='templates', instance_path=None, instance_relative_config=False, root_path=None, Auth: Type[Auth] = Auth): - super().__init__(config, db, import_name, static_path, static_url_path, static_folder, - template_folder, instance_path, instance_relative_config, root_path, Auth) + super().__init__(config, db, import_name, static_url_path, static_folder, static_host, + host_matching, subdomain_matching, template_folder, instance_path, + instance_relative_config, root_path, Auth) + +