Example #1
0
    def handleAlarmErrors(sender, **extra):
        """
        Implementation of error in alarms

        :param sender: event sender
        :param extra: extra parameters for event
        """
        SocketHandler.send_message(sender, **extra)
Example #2
0
    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 handleMapDownloadProgress(sender, **extra):
        """
        Implementation of stop map tile download

        :param sender: event sender
        :param extra: extra parameters for event
        """
        SocketHandler.send_message(sender, **extra)
Example #4
0
    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)
Example #5
0
    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)
Example #6
0
    def handleAlarmErrors(sender, **extra):
        """
        Implementation of error in alarms

        :param sender: event sender
        :param extra: extra parameters for event
        """
        SocketHandler.send_message(sender, **extra)
Example #7
0
    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)
Example #8
0
    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)
Example #10
0
    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)
Example #11
0
    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)
Example #12
0
    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)
Example #13
0
 def handleClientAnswer(sender, **extra):
     """Deliver data from client answer"""
     SocketHandler.send_message(sender, **extra)
Example #14
0
 def handleOSMDone(sender, **extra):
     SocketHandler.send_message(sender, **extra)
Example #15
0
 def handleClientSearch(sender, **extra):
     """Deliver result of client search"""
     SocketHandler.send_message(sender, **extra)
Example #16
0
 def doHandle(sender, **extra):
     if 'jid' in extra:
         SocketHandler.send_message(str(extra['jid']))
     else:
         SocketHandler.send_message('scheduler.process', **extra)
 def handleClientAnswer(sender, **extra):
     """Deliver data from client answer"""
     SocketHandler.send_message(sender, **extra)
Example #18
0
 def handleOSMChanged(sender, **extra):
     SocketHandler.send_message(sender, **extra)
 def handleClientSearch(sender, **extra):
     """Deliver result of client search"""
     SocketHandler.send_message(sender, **extra)
 def handleOSMDone(sender, **extra):
     SocketHandler.send_message(sender, **extra)
 def handleOSMChanged(sender, **extra):
     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)