This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-04-27 17:16:43 +00:00
|
|
|
from typing import Type
|
|
|
|
|
|
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
|
|
|
|
|
|
from ereuse_devicehub.auth import Auth
|
2018-04-10 15:06:39 +00:00
|
|
|
from ereuse_devicehub.client import Client
|
2018-04-27 17:16:43 +00:00
|
|
|
from ereuse_devicehub.db import db
|
|
|
|
from teal.config import Config as ConfigClass
|
2018-04-10 15:06:39 +00:00
|
|
|
from teal.teal import Teal
|
|
|
|
|
|
|
|
|
|
|
|
class Devicehub(Teal):
|
|
|
|
test_client_class = Client
|
2018-04-27 17:16:43 +00:00
|
|
|
|
|
|
|
def __init__(self, config: ConfigClass,
|
|
|
|
db: SQLAlchemy = db,
|
|
|
|
import_name=__package__,
|
|
|
|
static_path=None,
|
|
|
|
static_url_path=None,
|
|
|
|
static_folder='static',
|
|
|
|
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)
|