Example #1
0
    def replyArrived(self, reply):
        SpecCommandA.replyArrived(self, reply)

        self.__cmdExecution = False
        
        if reply.error:
            self.emit('commandFailed', (reply.error_code, str(self.name())))
        else:
            self.emit('commandReplyArrived', (reply.getValue(), str(self.name())))
Example #2
0
    def replyArrived(self, reply):
        SpecCommandA.replyArrived(self, reply)

        self.__cmdExecution = False

        if reply.error:
            self.emit('commandFailed', (reply.error_code, str(self.name())))
        else:
            self.emit('commandReplyArrived',
                      (reply.getValue(), str(self.name())))
Example #3
0
 def isConnected(self):
     return SpecCommandA.isSpecConnected(self)
Example #4
0
    def abort(self):
        SpecCommandA.abort(self)

        self.__cmdExecution = False
        self.emit('commandAborted', (str(self.name()), ))
Example #5
0
 def __init__(self, name, command, version=None, username=None, **kwargs):
     CommandObject.__init__(self, name, username, **kwargs)
     SpecCommandA.__init__(self, command, version)
     self.__cmdExecution = False
Example #6
0
 def isConnected(self):
     return SpecCommandA.isSpecConnected(self)
Example #7
0
 def abort(self):
     SpecCommandA.abort(self)
     
     self.__cmdExecution = False
     self.emit('commandAborted', (str(self.name()), ))
Example #8
0
 def __init__(self, name, command, version = None, username = None, **kwargs):
     CommandObject.__init__(self, name, username, **kwargs)
     SpecCommandA.__init__(self, command, version)
     self.__cmdExecution = False