PEATSA/WebApp/Data.py
def deleteJob(self, job):
	
		'''Deletes a job from the database
		
		Parameters
			job - a instance of the Job class'''
		
		#Check job is not running
		if job.state() != 'Running' and job.state() != 'Launched':
			deleteQuery = """DELETE FROM %s WHERE JobId='%s'""" % (job.jobTable, job.identification)
			self.cursor.execute(deleteQuery)
			self.connection.commit()
		else:
			raise Core.Exceptions.ArgumentError, 'Cannot delete job - is running'
Deletes a job from the database
		
		Parameters
			job - a instance of the Job class
Deletes a job from the database
Parameters
job - a instance of the Job class
Deletes a job from the database Parameters job - a instance of the Job class
def deleteJob(self, job):
		if job.state() != 'Running' and job.state() != 'Launched':
			deleteQuery = """DELETE FROM %s WHERE JobId='%s'""" % (job.jobTable, job.identification)
			self.cursor.execute(deleteQuery)
			self.connection.commit()
		else:
			raise Core.Exceptions.ArgumentError, 'Cannot delete job - is running'
def deleteJob ( self , job ) : if job . state ( ) != 'Running' and job . state ( ) != 'Launched' : deleteQuery = """DELETE FROM %s WHERE JobId='%s'""" % ( job . jobTable , job . identification ) self . cursor . execute ( deleteQuery ) self . connection . commit ( ) else : raise Core . Exceptions . ArgumentError , 'Cannot delete job - is running'
Deletes a job from the database
Parameters
job - a instance of the Job class
Deletes a job from the database Parameters job - a instance of the Job class
'''Deletes a job from the database
		
		Parameters
			job - a instance of the Job class''' #Check job is not running
self
job