Esempio n. 1
0
    def package(self):
        if self.is_in_queue():
            self.response = "already in packager queue"
        elif self.is_packaged():
            self.response = "already packaged"
        else:
            job_dict = {}
            job_dict['prod_id'] = self.prod_id
            job_dict['title'] = self.title
            job_dict['asset_type'] = self.asset_type
            job_dict['priority'] = self.priority
            submitter = CLI.submit_job(job_dict)

            self.response = submitter['response']
Esempio n. 2
0
 def is_in_queue(self):
     return CLI.is_in_queue(self.prodid)    
Esempio n. 3
0
 def is_packaged(self):
     return CLI.is_packaged(self.prodid)