PEATSA/WebApp/Data.py
def isEmailSent(self):
	
		'''Returns True if an email has been sent in relation to this job already'''
		
		if not self.exists():
			raise Exceptions.DatabaseRetrievalError, "Job Id %s does not exist in the database" % self.identification
		
		self.connection.commit()
		selectQuery = """SELECT SentMail FROM %s WHERE JobID='%s'""" % (self.jobTable, self.identification)
		self.cursor.execute(selectQuery)		
		rows = self.cursor.fetchall()
		
		return bool(rows[0][0])
Returns True if an email has been sent in relation to this job already
Returns True if an email has been sent in relation to this job already
Returns True if an email has been sent in relation to this job already
def isEmailSent(self):
		if not self.exists():
			raise Exceptions.DatabaseRetrievalError, "Job Id %s does not exist in the database" % self.identification
		self.connection.commit()
		selectQuery = """SELECT SentMail FROM %s WHERE JobID='%s'""" % (self.jobTable, self.identification)
		self.cursor.execute(selectQuery)		
		rows = self.cursor.fetchall()
		return bool(rows[0][0])
def isEmailSent ( self ) : if not self . exists ( ) : raise Exceptions . DatabaseRetrievalError , "Job Id %s does not exist in the database" % self . identification self . connection . commit ( ) selectQuery = """SELECT SentMail FROM %s WHERE JobID='%s'""" % ( self . jobTable , self . identification ) self . cursor . execute ( selectQuery ) rows = self . cursor . fetchall ( ) return bool ( rows [ 0 ] [ 0 ] )
Returns True if an email has been sent in relation to this job already
Returns True if an email has been sent in relation to this job already
'''Returns True if an email has been sent in relation to this job already'''
self