diff options
Diffstat (limited to 'module/api/ApiComponent.py')
-rw-r--r-- | module/api/ApiComponent.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/module/api/ApiComponent.py b/module/api/ApiComponent.py index ba96b3be9..a89e3e0a5 100644 --- a/module/api/ApiComponent.py +++ b/module/api/ApiComponent.py @@ -7,11 +7,16 @@ from module.remote.ttypes import Iface Iface = object class ApiComponent(Iface): - def __init__(self, core): + __slots__ = [] + + def __init__(self, core, user): # Only for auto completion, this class can not be instantiated from pyload import Core + from module.datatypes.User import User assert isinstance(core, Core) assert issubclass(ApiComponent, Iface) self.core = core + assert isinstance(user, User) + self.user = user # No instantiating! raise Exception()
\ No newline at end of file |