def handleAction(self, model, entityID, action):
     notification = model.collection.getItem(NOTIFICATION_TYPE.WGNC_POP_UP, entityID)
     if notification:
         actorName = notification.getSavedData()
     else:
         actorName = ''
     g_wgncProvider.doAction(entityID, action, actorName)
 def handleAction(self, model, entityID, action):
     notification = model.collection.getItem(NOTIFICATION_TYPE.WGNC_POP_UP, entityID)
     if notification:
         actorName = notification.getSavedData()
     else:
         actorName = ''
     g_wgncProvider.doAction(entityID, action, actorName)
示例#3
0
 def onBtnClick(self):
     item = g_wgncProvider.getNotItemByName(self.__notID, self.__target)
     if not item:
         self.destroy()
         return
     button = item.getSubmitButton()
     if button:
         g_wgncProvider.doAction(self.__notID, button.action, self.__target)
     self.destroy()
示例#4
0
 def onBtnClick(self):
     item = g_wgncProvider.getNotItemByName(self.__notID, self.__target)
     if not item:
         self.destroy()
         return
     button = item.getSubmitButton()
     if button:
         g_wgncProvider.doAction(self.__notID, button.action, self.__target)
     self.destroy()
示例#5
0
 def onWindowClose(self):
     isOk = yield DialogsInterface.showI18nConfirmDialog('interviewQuit', focusedID=DIALOG_BUTTON_ID.SUBMIT)
     if isOk:
         item = g_wgncProvider.getNotItemByName(self.__notID, self.__target)
         if not item:
             return
         button = item.getCancelButton()
         if not button:
             return
         g_wgncProvider.doAction(self.__notID, button.action, self.__target)
         self.destroy()
示例#6
0
 def onWindowClose(self):
     isOk = yield DialogsInterface.showI18nConfirmDialog('interviewQuit', focusedID=DIALOG_BUTTON_ID.SUBMIT)
     if isOk:
         item = g_wgncProvider.getNotItemByName(self.__notID, self.__target)
         if not item:
             return
         button = item.getCancelButton()
         if not button:
             return
         g_wgncProvider.doAction(self.__notID, button.action, self.__target)
         self.destroy()
示例#7
0
 def onLinkClick(self, actions):
     g_wgncProvider.doAction(self.__notID, actions, self.__target)
示例#8
0
 def doAction(self, actionID, isButtonClicked):
     g_wgncProvider.doAction(self.__notID, actionID, self.__target)
     if isButtonClicked:
         self.destroy()
示例#9
0
 def onLinkClick(self, actions):
     g_wgncProvider.doAction(self.__notID, actions, self.__target)
示例#10
0
 def doAction(self, actionID, isButtonClicked):
     g_wgncProvider.doAction(self.__notID, actionID, self.__target)
     if isButtonClicked:
         self.destroy()