PEATSA/WebApp/Data.py
def ligand(self):
	
		'''Returns a string containing the structure of the ligand in mol2 format.
		
		If no ligand is present the method returns None'''

		if not self.exists():
			raise Exceptions.DatabaseRetrievalError, "Job Id %s does not exist in the database" % self.identification

		self.connection.commit()
		statement = """SELECT Ligand FROM %s WHERE JobID='%s' """ % (self.jobTable, self.identification)
		self.cursor.execute(statement)
		rows = self.cursor.fetchall()
		
		return rows[0][0]
Returns a string containing the structure of the ligand in mol2 format.
		
		If no ligand is present the method returns None
Returns a string containing the structure of the ligand in mol2 format.
If no ligand is present the method returns None
Returns a string containing the structure of the ligand in mol2 format . If no ligand is present the method returns None
def ligand(self):
		if not self.exists():
			raise Exceptions.DatabaseRetrievalError, "Job Id %s does not exist in the database" % self.identification
		self.connection.commit()
		statement = """SELECT Ligand FROM %s WHERE JobID='%s' """ % (self.jobTable, self.identification)
		self.cursor.execute(statement)
		rows = self.cursor.fetchall()
		return rows[0][0]
def ligand ( self ) : if not self . exists ( ) : raise Exceptions . DatabaseRetrievalError , "Job Id %s does not exist in the database" % self . identification self . connection . commit ( ) statement = """SELECT Ligand FROM %s WHERE JobID='%s' """ % ( self . jobTable , self . identification ) self . cursor . execute ( statement ) rows = self . cursor . fetchall ( ) return rows [ 0 ] [ 0 ]
Returns a string containing the structure of the ligand in mol2 format.
Returns a string containing the structure of the ligand in mol2 format .
'''Returns a string containing the structure of the ligand in mol2 format.
		
		If no ligand is present the method returns None'''
self