def editSprint(self): sprint = self.sprintPopMenu.getSelectedObject() if Dialogs.EditSprintDialog(self.controller, master=self.controller, dataBlock=self.controller.dataBlock, sprint=sprint).show(): messagebox.showinfo('Success', 'Sprint Updated Successfully')
def deleteSprint(self): sprint = self.sprintPopMenu.getSelectedObject() self.selectedItem = None self.selectedSubItem = None if Dialogs.DeleteSprintDialog(self.controller, master=self.controller, dataBlock=self.controller.dataBlock, sprint=sprint).show(): self.selectedSprint = None
def updateItem(self): item = None title = self.selectedItem.itemTitle for i in self.controller.dataBlock.items: if i.itemTitle == title: item = i if item is None: raise Exception('Error Loading item from title') Dialogs.EditItemDialog(self.controller, master=self.controller, dataBlock=self.controller.dataBlock, item=item).show()
def setItemToSubmitted(self): Item = self.myItemsPopMenu.getSelectedObject() assert Item is not None, ' myItemsPopMenu failed to send Item' # Comment = ScrumblesObjects.Comment() # Comment.commentItemID = Item.itemID # Comment.commentUserID = self.controller.activeUser.userID # Comment.commentContent = 'Set to Submitted by menu action' updated = Dialogs.codeLinkDialog(self, master=self.controller, dataBlock=self.controller.dataBlock, item=Item).show() if updated: try: print(Item) self.controller.dataBlock.modifyItemStatus( Item, Item.statusTextToNumberMap['Submitted']) # self.controller.dataBlock.addNewScrumblesObject(Comment) messagebox.showinfo( 'Success', 'Item Submitted to Scrum Master for review') except Exception as e: logging.exception('Error Assigning Submitting item for review') messagebox.showerror('Error', str(e))
def showCreateItemDialog(self, event = None): Dialogs.CreateItemDialog(self, master = self, dataBlock = self.dataBlock).show()
def showCreateUserDialog(self, even = None): Dialogs.CreateUserDialog(self, master = self, dataBlock = self.dataBlock).show()
def colorHelp(self): Dialogs.AboutDialog(self, master = self).show()