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.
2020-02-26 19:21:59 +00:00
|
|
|
from typing import Callable, Iterable, Tuple
|
|
|
|
|
|
|
|
from ereuse_devicehub.resources.deliverynote import schemas
|
2020-02-27 17:29:26 +00:00
|
|
|
from ereuse_devicehub.resources.deliverynote.views import DeliverynoteView
|
2023-03-21 11:08:13 +00:00
|
|
|
from ereuse_devicehub.teal.resource import Converters, Resource
|
2020-02-26 19:21:59 +00:00
|
|
|
|
|
|
|
|
2020-02-27 17:29:26 +00:00
|
|
|
class DeliverynoteDef(Resource):
|
|
|
|
SCHEMA = schemas.Deliverynote
|
|
|
|
VIEW = DeliverynoteView
|
2020-02-29 21:58:49 +00:00
|
|
|
AUTH = True
|
2020-02-26 19:21:59 +00:00
|
|
|
ID_CONVERTER = Converters.uuid
|
|
|
|
|
2023-03-21 11:08:13 +00:00
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
app,
|
|
|
|
import_name=__name__.split('.')[0],
|
|
|
|
static_folder=None,
|
|
|
|
static_url_path=None,
|
|
|
|
template_folder=None,
|
|
|
|
url_prefix=None,
|
|
|
|
subdomain=None,
|
|
|
|
url_defaults=None,
|
|
|
|
root_path=None,
|
|
|
|
cli_commands: Iterable[Tuple[Callable, str or None]] = tuple(),
|
|
|
|
):
|
|
|
|
super().__init__(
|
|
|
|
app,
|
|
|
|
import_name,
|
|
|
|
static_folder,
|
|
|
|
static_url_path,
|
|
|
|
template_folder,
|
|
|
|
url_prefix,
|
|
|
|
subdomain,
|
|
|
|
url_defaults,
|
|
|
|
root_path,
|
|
|
|
cli_commands,
|
|
|
|
)
|