integrate/app/nextcloud/main.py

26 lines
543 B
Python
Raw Normal View History

2022-04-29 14:13:54 +02:00
from unittest.mock import MagicMock
from app.sink import BaseGroup, BaseUser, Sink
class Api:
def create_user(self):
pass
class NextcloudSink(Sink):
def __init__(self):
self._api: Api = Api()
@property
def api(self):
return self._api
@api.setter
def api(self, api):
self._api = api
def create_user(self, user: BaseUser): # Wekan):
return self.api.create_user()
def create_group(self, group: BaseGroup):
print("Create Nextcloud Group: ", group)
pass