Public Member Functions | |
| def | __init__ |
| def | __repr__ |
Public Attributes | |
| application | |
| backend | |
| inputsandbox | |
| outputsandbox | |
| status | |
| id | |
| inputdir | |
| outputdir | |
Fake Ganga Interface: Job:
Definition at line 8 of file FGIJob.py.
| def FGIJob::FGIJob::__init__ | ( | self, | ||
| dict | ||||
| ) |
Definition at line 12 of file FGIJob.py.
00012 : 00013 self.application = FGIExecutable.FGIExecutable() 00014 self.backend = None 00015 self.inputsandbox = [] 00016 self.outputsandbox = [] 00017 self.status = 'new' 00018 if dict.has_key('application'): self.application = dict['application'] 00019 if dict.has_key('backend'): self.backend = dict['backend'] 00020 if dict.has_key('inputsandbox'): self.inputsandbox = dict['inputsandbox'] 00021 if dict.has_key('outputsandbox'): self.outputsandbox = dict['outputsandbox'] 00022 self.id = 0 00023 top_dir = GBSConfig.GetConfig().GetValue("FGITopDir") 00024 if top_dir == None: top_dir = "." 00025 while os.path.isdir(top_dir + '/' + str(self.id)): self.id += 1 00026 os.mkdir(top_dir + '/' + str(self.id),0750) 00027 self.inputdir = top_dir + '/' + str(self.id) + "/input/" 00028 self.outputdir = top_dir + '/' + str(self.id) + "/output/" 00029 def __repr__(self):
| def FGIJob::FGIJob::__repr__ | ( | self | ) |
Definition at line 30 of file FGIJob.py.
00030 : 00031 txt = "FGIJob (" 00032 txt += "status = " + repr(self.status) + "," 00033 txt += "inputdir = " + repr(self.inputdir) + "," 00034 txt += "outputdir = " + repr(self.outputdir) + "," 00035 txt += "outputsandbox = " + repr(self.outputsandbox) + "," 00036 txt += "id = " + repr(self.id) + "," 00037 txt += "inputsandbox = " + repr(self.inputsandbox) + "," 00038 txt += "application = " + repr(self.application) + "," 00039 txt += "backend = " + repr(self.backend) + "," 00040 txt += ")" 00041 return txt return txt
1.5.4