insert onLoad() routine in plugins

This commit is contained in:
Schrolli 2015-06-29 12:19:44 +02:00
parent 304b7ddeb0
commit 95d2d2f119
7 changed files with 170 additions and 12 deletions

View file

@ -16,6 +16,29 @@ import json # for data-transfer
from includes import globals # Global variables
##
#
# onLoad function of plugin
# will be called by the pluginLoader
#
def onLoad():
"""
While loading the plugins by pluginLoader.loadPlugins()
this onLoad() routine are called
@requires: nothing
@return: nothing
"""
try:
########## User onLoad CODE ##########
########## User onLoad CODE ##########
except:
logging.error("unknown error")
logging.debug("unknown error", exc_info=True)
##
#
# Main function of jsonSocket-plugin