PEATSA/WebApp/Data.py
def isMutationList(self):
	
		'''Returns True if the jobs mutations are specified by a mutation list'''
	
		if not self.exists():
			raise Exceptions.DatabaseRetrievalError, "Job Id %s does not exist in the database" % self.identification
			
		#FIXME: Catch index errors if nothing is returned - (if there are any)
		#It may be that always [[]] is returned if nothing is found	
		self.connection.commit()
		statement = """SELECT MutationCommand FROM %s WHERE JobID='%s' """ % (self.jobTable, self.identification)
		self.cursor.execute(statement)
		rows = self.cursor.fetchall()
		mutationCommand = rows[0][0]
		
		isMutationList = False
		if mutationCommand == '--mutationList':
			isMutationList = True
			
		return isMutationList
Returns True if the jobs mutations are specified by a mutation list
Returns True if the jobs mutations are specified by a mutation list
Returns True if the jobs mutations are specified by a mutation list
def isMutationList(self):
		if not self.exists():
			raise Exceptions.DatabaseRetrievalError, "Job Id %s does not exist in the database" % self.identification
		self.connection.commit()
		statement = """SELECT MutationCommand FROM %s WHERE JobID='%s' """ % (self.jobTable, self.identification)
		self.cursor.execute(statement)
		rows = self.cursor.fetchall()
		mutationCommand = rows[0][0]
		isMutationList = False
		if mutationCommand == '--mutationList':
			isMutationList = True
		return isMutationList
def isMutationList ( self ) : if not self . exists ( ) : raise Exceptions . DatabaseRetrievalError , "Job Id %s does not exist in the database" % self . identification self . connection . commit ( ) statement = """SELECT MutationCommand FROM %s WHERE JobID='%s' """ % ( self . jobTable , self . identification ) self . cursor . execute ( statement ) rows = self . cursor . fetchall ( ) mutationCommand = rows [ 0 ] [ 0 ] isMutationList = False if mutationCommand == '--mutationList' : isMutationList = True return isMutationList
Returns True if the jobs mutations are specified by a mutation list
Returns True if the jobs mutations are specified by a mutation list
'''Returns True if the jobs mutations are specified by a mutation list''' #FIXME: Catch index errors if nothing is returned - (if there are any) #It may be that always [[]] is returned if nothing is found	
self