From 1290a92ede7176efd356803fcbd8e5120737e7c6 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sun, 23 Feb 2020 01:52:45 -0500 Subject: [PATCH] !fixup --- keyosk/resources/__init__.py | 2 -- keyosk/resources/account.py | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/keyosk/resources/__init__.py b/keyosk/resources/__init__.py index c5ecdbb..0011df5 100644 --- a/keyosk/resources/__init__.py +++ b/keyosk/resources/__init__.py @@ -3,7 +3,6 @@ from typing import Type from keyosk.resources._shared import KeyoskResource from keyosk.resources.account import AccountMultiResource -from keyosk.resources.account import AccountPermissionResource from keyosk.resources.account import AccountSingleResource from keyosk.resources.auth import AuthenticationResource from keyosk.resources.blacklist import BlacklistResource @@ -24,5 +23,4 @@ RESOURCES: List[Type[KeyoskResource]] = [ DomainAuditResource, AccountMultiResource, AccountSingleResource, - AccountPermissionResource, ] diff --git a/keyosk/resources/account.py b/keyosk/resources/account.py index 70f108a..7ebcf1a 100644 --- a/keyosk/resources/account.py +++ b/keyosk/resources/account.py @@ -31,17 +31,3 @@ class AccountSingleResource(KeyoskResource): def head(self, account_ref: str) -> ResponseTuple: return self._head(self.get(account_ref)) - - -class AccountPermissionResource(KeyoskResource): - - ROUTES = "/account//permission" - - def get(self, account_ref: str) -> ResponseTuple: - raise NotADirectoryError - - def patch(self, account_ref: str) -> ResponseTuple: - raise NotADirectoryError - - def head(self, account_ref: str) -> ResponseTuple: - return self._head(self.get(account_ref))