예제 #1
0
    def submit(self):
        """Submit action to submit a job."""
        jobData = self.getJobData()
        if not self.validate(jobData):
            return
        self.clearMessageShown = False
        self.saveSettings(jobData)
        self.updateCompleters()
        try:
            jobs = Submission.submitJob(jobData)
        except opencue.exception.CueException as e:
            message = "Failed to submit job!\n" + e.message
            Widgets.CueMessageBox(message, title="Failed Job Submission", parent=self).show()
            raise e

        message = "Submitted Job to OpenCue."
        for job in jobs:
            message += "\nJob ID: {}\nJob Name: {}".format(job.id(), job.name())
        Widgets.CueMessageBox(message, title="Submitted Job Data", parent=self).show()
예제 #2
0
 def errorReadingSettings(self):
     """Display an error message and clear the QSettings object."""
     if not self.clearMessageShown:
         Widgets.CueMessageBox(
             "Previous submission history cannot be read from the QSettings."
             "Clearing submission history.",
             title="Cannot Read History",
             parent=self).show()
     self.clearMessageShown = True
     self.settings.clear()
예제 #3
0
    def showEvent(self, event):
        if self.startupErrors:
            for startupError in self.startupErrors:
                msgBox = Widgets.CueMessageBox(startupError, title="No Shows Exist", parent=self)
                msgBox.show()
                msgBox.centerOnScreen() #  explicitly center on desktop center as parent is not shown yet

            # Raise at least one of the errors so the user gets feedback in the event the GUI wasn't built
            # or shown properly.
            raise opencue.exception.CueException(self.startupErrors[0])
예제 #4
0
 def errorInJobData(self, message):
     Widgets.CueMessageBox(message, title="Error in Job Data", parent=self).show()
     return False
예제 #5
0
파일: Submit.py 프로젝트: sqlboy/OpenCue
 def errorInJobData(self, message):
     """Displays an error box about invalid job data."""
     Widgets.CueMessageBox(message, title="Error in Job Data", parent=self).show()
     return False