Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 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()
Esempio n. 7
0
 def onLinkClick(self, actions):
     g_wgncProvider.doAction(self.__notID, actions, self.__target)
Esempio n. 8
0
 def doAction(self, actionID, isButtonClicked):
     g_wgncProvider.doAction(self.__notID, actionID, self.__target)
     if isButtonClicked:
         self.destroy()
Esempio n. 9
0
 def onLinkClick(self, actions):
     g_wgncProvider.doAction(self.__notID, actions, self.__target)
Esempio n. 10
0
 def doAction(self, actionID, isButtonClicked):
     g_wgncProvider.doAction(self.__notID, actionID, self.__target)
     if isButtonClicked:
         self.destroy()