def delete(self,*args): conn.fetchArgumentsForSelectCommands(self.commandList) conn.retreiveValuesForArguments() ret, flag1, flag2, flag3, e = DBConn.deleteCommand(conn,self.commandList,conn.softwarePackageID) if ret == 1: popup = UTIL.createP1('Success','Successful deletion',"Transaction for specified commands on ARGUMENTS, ARGUMENT_VALUES, and SOFTWARE_COMMANDS successful") popup.open() else: if flag1 != 1: popupFailure = UTIL.createP1('Failure','Unsuccessful Argument Value Deletion',"Unsuccessful transaction on table ARGUMENT_VALUES",e) elif flag2 != 1: popupFailure = UTIL.createP1('Failure','Unsuccessful Argument Deletion',"Successful Transaction on ARGUMENT_VALUES but, Unsuccessful transaction on table ARGUMENTS",e) elif flag3 != 1: popupFailure = UTIL.createP1('Failure','Unsuccessful Command Deletion',"Successful Transaction on ARGUMENTS and ARGUMENT_VALUES but, Unsuccessful transaction on table SOFTWARE_COMMANDS",e) popupFailure.open()
def addArgument(self): pop = UTIL.createP1("Add argument values below","Add Argument","",conn.dictOfCommands,self.commandList[0],conn) pop.open()
def addCommand(self,*args): print("Generating popup for creating command") popup = UTIL.createP1('Add Command details below','Create Command','',conn) popup.open()
def displayDetail(self): pop = UTIL.createP1("Arguments. Click them to veiw/modify their values","Display Argument Details","",conn.dictOfArguments,conn.dictOfCommands,conn,conn.dictOfArgVal,self.commandList) pop.open()