Example #1
0
 def isContextBusy(self, contextName):
     contextKey = self.contextKeys[contextName]
     checkMsg = MsgHelper.createRequest(CtxMessages.REQ_CAN_CLOSE,"LST","CTX")
     checkMsg.setSender("LST")
     checkMsg.setReceiver(contextName)
     response = self.__ctxIFC.sendRequest(checkMsg, contextKey)
     try:
         canClose = eval(response[CtxMessages.FIELD_BOOL])
     except:
         canClose = True
     return canClose
Example #2
0
 def isContextBusy(self, contextName):
     contextKey = self.contextKeys[contextName]
     checkMsg = MsgHelper.createRequest(CtxMessages.REQ_CAN_CLOSE, "LST",
                                        "CTX")
     checkMsg.setSender("LST")
     checkMsg.setReceiver(contextName)
     response = self.__ctxIFC.sendRequest(checkMsg, contextKey)
     try:
         canClose = eval(response[CtxMessages.FIELD_BOOL])
     except:
         canClose = True
     return canClose