summaryrefslogtreecommitdiffstats
path: root/module/api/ApiComponent.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/api/ApiComponent.py')
-rw-r--r--module/api/ApiComponent.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/module/api/ApiComponent.py b/module/api/ApiComponent.py
new file mode 100644
index 000000000..3948086c2
--- /dev/null
+++ b/module/api/ApiComponent.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from module.remote.apitypes import Iface
+
+# Workaround to let code-completion think, this is subclass of Iface
+Iface = object
+class ApiComponent(Iface):
+
+ __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
+ self.primaryUID = 0
+ # No instantiating!
+ raise Exception() \ No newline at end of file