PEATSA/WebApp/Data.py
def allJobs(self):
	
		'''Returns Job instances representing all the jobs in this run'''
		
		#Check the job entry exists in the database
		query = "SELECT * FROM %s WHERE RunID = '%s'" % (self.jobAssocTable, self.identification)
		self.cursor.execute(query)
		rows = self.cursor.fetchall()
		
		ids = self.allJobIds()
		jobs = []
		for id in ids:
			job = Job(id, self.connection, self.jobTable, self.jobDataTable)
			jobs.append(job)
		
		return jobs
Returns Job instances representing all the jobs in this run
Returns Job instances representing all the jobs in this run
Returns Job instances representing all the jobs in this run
def allJobs(self):
		query = "SELECT * FROM %s WHERE RunID = '%s'" % (self.jobAssocTable, self.identification)
		self.cursor.execute(query)
		rows = self.cursor.fetchall()
		ids = self.allJobIds()
		jobs = []
		for id in ids:
			job = Job(id, self.connection, self.jobTable, self.jobDataTable)
			jobs.append(job)
		return jobs
def allJobs ( self ) : query = "SELECT * FROM %s WHERE RunID = '%s'" % ( self . jobAssocTable , self . identification ) self . cursor . execute ( query ) rows = self . cursor . fetchall ( ) ids = self . allJobIds ( ) jobs = [ ] for id in ids : job = Job ( id , self . connection , self . jobTable , self . jobDataTable ) jobs . append ( job ) return jobs
Returns Job instances representing all the jobs in this run
Returns Job instances representing all the jobs in this run
'''Returns Job instances representing all the jobs in this run''' #Check the job entry exists in the database
self