diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-03 21:00:58 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-03 21:00:58 +0100 |
commit | 7c6374b4b5d452ab239f8b725038f2a2eb82368f (patch) | |
tree | 392f5809fb908eb7f22dffd273821bcc831da3dc /module/api/ApiComponent.py | |
parent | seperate api into several components (diff) | |
download | pyload-7c6374b4b5d452ab239f8b725038f2a2eb82368f.tar.xz |
split api into more components
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 2b09d05a3..ba96b3be9 100644 --- a/module/api/ApiComponent.py +++ b/module/api/ApiComponent.py @@ -1,12 +1,17 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -class ApiComponent: +from module.remote.ttypes import Iface + +# Workaround to let code-completion think, this is subclass of Iface +Iface = object +class ApiComponent(Iface): def __init__(self, core): # Only for auto completion, this class can not be instantiated from pyload import Core assert isinstance(core, Core) + assert issubclass(ApiComponent, Iface) self.core = core # No instantiating! raise Exception()
\ No newline at end of file |