do not have duplicate class name in onionrpluginapi
This commit is contained in:
parent
2316e3c6e4
commit
802af58d46
@ -22,7 +22,7 @@ import config, logger, onionrplugins as plugins, onionrpluginapi as pluginapi
|
|||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
def get_pluginapi(onionr, data):
|
def get_pluginapi(onionr, data):
|
||||||
return pluginapi.pluginapi(onionr, data)
|
return pluginapi.SharedAPI(onionr, data)
|
||||||
|
|
||||||
def __event_caller(event_name, data = {}, onionr = None):
|
def __event_caller(event_name, data = {}, onionr = None):
|
||||||
'''
|
'''
|
||||||
|
@ -143,7 +143,7 @@ class WebAPI:
|
|||||||
def get_callbacks(self, scope = None):
|
def get_callbacks(self, scope = None):
|
||||||
return self.pluginapi.get_onionr().api.getCallbacks(scope = scope)
|
return self.pluginapi.get_onionr().api.getCallbacks(scope = scope)
|
||||||
|
|
||||||
class pluginapi:
|
class SharedAPI:
|
||||||
def __init__(self, onionr, data):
|
def __init__(self, onionr, data):
|
||||||
self.onionr = onionr
|
self.onionr = onionr
|
||||||
self.data = data
|
self.data = data
|
||||||
|
Loading…
Reference in New Issue
Block a user