def registerCallback(self, sgScriptName, sgScriptKey, callback, matchEvents=None, args=None, stopOnError=True):
    '\n        Register a callback in the plugin.\n        '
    global sg
    sgConnection = sg.Shotgun(self._engine.config.getShotgunURL(), sgScriptName, sgScriptKey, http_proxy=self._engine.config.getEngineProxyServer())
    self._callbacks.append(Callback(callback, self, self._engine, sgConnection, matchEvents, args, stopOnError))
Register a callback in the plugin.
def registerCallback(self, sgScriptName, sgScriptKey, callback, matchEvents=None, args=None, stopOnError=True):
    '\n        \n        '
    global sg
    sgConnection = sg.Shotgun(self._engine.config.getShotgunURL(), sgScriptName, sgScriptKey, http_proxy=self._engine.config.getEngineProxyServer())
    self._callbacks.append(Callback(callback, self, self._engine, sgConnection, matchEvents, args, stopOnError))