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 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()
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()
def onLinkClick(self, actions): g_wgncProvider.doAction(self.__notID, actions, self.__target)
def doAction(self, actionID, isButtonClicked): g_wgncProvider.doAction(self.__notID, actionID, self.__target) if isButtonClicked: self.destroy()