PEATSA/WebApp/Data.py
def jobStates(self):
	
		'''Returns a dict describing the state of each job
		
		The dicts keys are job ids. Each values is a dict containing the the jobs state and date'''
		
		self.connection.commit()
		selectQuery = """SELECT JobID, State, Date FROM %s""" % (self.jobTable)
		self.cursor.execute(selectQuery)		
		rows = self.cursor.fetchall()
		
		stateDict = {}
		for row in rows:
			stateDict[row[0]] = {'State':row[1], 'Date':row[2]}
				
		return stateDict
Returns a dict describing the state of each job
		
		The dicts keys are job ids. Each values is a dict containing the the jobs state and date
Returns a dict describing the state of each job
The dicts keys are job ids. Each values is a dict containing the the jobs state and date
Returns a dict describing the state of each job The dicts keys are job ids . Each values is a dict containing the the jobs state and date
def jobStates(self):
		self.connection.commit()
		selectQuery = """SELECT JobID, State, Date FROM %s""" % (self.jobTable)
		self.cursor.execute(selectQuery)		
		rows = self.cursor.fetchall()
		stateDict = {}
		for row in rows:
			stateDict[row[0]] = {'State':row[1], 'Date':row[2]}
		return stateDict
def jobStates ( self ) : self . connection . commit ( ) selectQuery = """SELECT JobID, State, Date FROM %s""" % ( self . jobTable ) self . cursor . execute ( selectQuery ) rows = self . cursor . fetchall ( ) stateDict = { } for row in rows : stateDict [ row [ 0 ] ] = { 'State' : row [ 1 ] , 'Date' : row [ 2 ] } return stateDict
Returns a dict describing the state of each job
The dicts keys are job ids.
Returns a dict describing the state of each job The dicts keys are job ids .
'''Returns a dict describing the state of each job
		
		The dicts keys are job ids. Each values is a dict containing the the jobs state and date'''
self