forked from platypush/platypush
Added _bus
property on Plugin
.
This commit is contained in:
parent
f12af08e73
commit
c2f53b7771
1 changed files with 9 additions and 0 deletions
|
@ -101,6 +101,15 @@ class Plugin(EventGenerator, ExtensionWithManifest): # lgtm [py/missing-call-to
|
||||||
assert redis, 'db plugin not initialized'
|
assert redis, 'db plugin not initialized'
|
||||||
return redis
|
return redis
|
||||||
|
|
||||||
|
@property
|
||||||
|
def _bus(self):
|
||||||
|
"""
|
||||||
|
:return: The reference to the :class:`platypush.bus.Bus`.
|
||||||
|
"""
|
||||||
|
from platypush.context import get_bus
|
||||||
|
|
||||||
|
return get_bus()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _entities(self):
|
def _entities(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue