M1-Arborator-NaijaSUD/arborator/lib/database.py
def treesForText(self,tid):
		"""
		gives all the realnames of all trees for a given textid
		called from project.cgi
		"""
		#importannoname=self.importAnnotatorName
		database,cursor=self.open()
		cursor.execute("""select distinct users.realname
					from trees, users, sentences
					where users.rowid=trees.userid and trees.sentenceid=sentences.rowid and sentences.textid=?;""",(tid,))
		#importannoname and users.user!=? 
		return cursor.fetchall()

		gives all the realnames of all trees for a given textid
		called from project.cgi
		
gives all the realnames of all trees for a given textid
called from project.cgi
gives all the realnames of all trees for a given textid called from project . cgi
def treesForText(self,tid):
		database,cursor=self.open()
		cursor.execute("""select distinct users.realname
					from trees, users, sentences
					where users.rowid=trees.userid and trees.sentenceid=sentences.rowid and sentences.textid=?;""",(tid,))
		return cursor.fetchall()
def treesForText ( self , tid ) : database , cursor = self . open ( ) cursor . execute ( """select distinct users.realname
					from trees, users, sentences
					where users.rowid=trees.userid and trees.sentenceid=sentences.rowid and sentences.textid=?;""" , ( tid , ) ) return cursor . fetchall ( )
gives all the realnames of all trees for a given textid
called from project.cgi
gives all the realnames of all trees for a given textid called from project . cgi
"""
		gives all the realnames of all trees for a given textid
		called from project.cgi
		""" #importannoname=self.importAnnotatorName #importannoname and users.user!=? 
self
tid