mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-26 14:01:30 +00:00
refactor(services): add overridable get owner and get group
This commit is contained in:
parent
0b7d2d0bf4
commit
c34eb6d447
|
@ -62,6 +62,14 @@ class Service(ABC):
|
||||||
def get_url() -> typing.Optional[str]:
|
def get_url() -> typing.Optional[str]:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_user(cls) -> typing.Optional[str]:
|
||||||
|
return cls.get_id()
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_group(cls) -> typing.Optional[str]:
|
||||||
|
return cls.get_user()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def is_movable() -> bool:
|
def is_movable() -> bool:
|
||||||
|
|
Loading…
Reference in a new issue