def handleAlarmErrors(sender, **extra): """ Implementation of error in alarms :param sender: event sender :param extra: extra parameters for event """ SocketHandler.send_message(sender, **extra)
def handleMapDownloadProgress(sender, **extra): """ Implementation of stop map tile download :param sender: event sender :param extra: extra parameters for event """ SocketHandler.send_message(sender, **extra)
def handleAlarmChanges(sender, **extra): """ Implementation of changes in alarm states :param sender: event sender :param extra: extra parameters for event """ SocketHandler.send_message(sender, **extra)
def handleAlarmTestUpload(sender, **extra): """ Implementation of test upload of alarm files :param sender: event sender :param extra: extra parameters for event """ SocketHandler.send_message(sender, **extra)
def handleMapDownloadDone(sender, **extra): """ Implementation of stop map tile download :param sender: event sender :param extra: extra parameters for event """ if 'tiles' in extra and extra['tiles'] in LOADTILES: LOADTILES.remove(extra['tiles']) # clicked tile, zoom 12 SocketHandler.send_message(sender, **extra)
def handleProcesses(sender, **extra): """ Handler for background processes :param sender: operation class or module :param extra: parameters of process as dict list """ if 'id' in extra: # TODO CHANGE PROCESS INFO SocketHandler.send_message(str(extra['id'])) else: SocketHandler.send_message('admin.processes', **extra)
def handleClientAnswer(sender, **extra): """Deliver data from client answer""" SocketHandler.send_message(sender, **extra)
def handleOSMDone(sender, **extra): SocketHandler.send_message(sender, **extra)
def handleClientSearch(sender, **extra): """Deliver result of client search""" SocketHandler.send_message(sender, **extra)
def doHandle(sender, **extra): if 'jid' in extra: SocketHandler.send_message(str(extra['jid'])) else: SocketHandler.send_message('scheduler.process', **extra)
def handleOSMChanged(sender, **extra): SocketHandler.send_message(sender, **extra)