M1-Arborator-NaijaSUD/arborator/lib/database.py
def uidForText(self,tid, dbcrsr=None):
		"""
		gives all the uids of all existing trees for a given textid
		called from getEvaluation.cgi
		"""
		#importannoname=self.self.importAnnotatorName
		if dbcrsr:	db,cursor=dbcrsr
		else:		db,cursor=self.open() 
		cursor.execute("""select distinct users.rowid
					from trees, users,sentences
					where users.rowid=trees.userid and trees.sentenceid=sentences.rowid and sentences.textid=?;""",(tid,))
		result = list(cursor.fetchall())
		if not dbcrsr: db.close()
		return result

		gives all the uids of all existing trees for a given textid
		called from getEvaluation.cgi
		
gives all the uids of all existing trees for a given textid
called from getEvaluation.cgi
gives all the uids of all existing trees for a given textid called from getEvaluation . cgi
def uidForText(self,tid, dbcrsr=None):
		if dbcrsr:	db,cursor=dbcrsr
		else:		db,cursor=self.open() 
		cursor.execute("""select distinct users.rowid
					from trees, users,sentences
					where users.rowid=trees.userid and trees.sentenceid=sentences.rowid and sentences.textid=?;""",(tid,))
		result = list(cursor.fetchall())
		if not dbcrsr: db.close()
		return result
def uidForText ( self , tid , dbcrsr = None ) : if dbcrsr : db , cursor = dbcrsr else : db , cursor = self . open ( ) cursor . execute ( """select distinct users.rowid
					from trees, users,sentences
					where users.rowid=trees.userid and trees.sentenceid=sentences.rowid and sentences.textid=?;""" , ( tid , ) ) result = list ( cursor . fetchall ( ) ) if not dbcrsr : db . close ( ) return result
gives all the uids of all existing trees for a given textid
called from getEvaluation.cgi
gives all the uids of all existing trees for a given textid called from getEvaluation . cgi
"""
		gives all the uids of all existing trees for a given textid
		called from getEvaluation.cgi
		""" #importannoname=self.self.importAnnotatorName
self
tid
dbcrsr