From 6f8b5347dfa119a3df21f4ca8ba8c2b1537a726a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 6 Jan 2013 15:54:52 +0100 Subject: first working parts of config api --- module/api/ApiComponent.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'module/api/ApiComponent.py') 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 -- cgit v1.2.3