#NEWLINE# def getSenderForToken( self , token ) : #NEWLINE# #INDENT# cur = self . sydent . db . cursor ( ) #NEWLINE# res = cur . execute ( 'SELECT sender FROM invite_tokens WHERE token = ?' , ( token , ) ) #NEWLINE# rows = res . fetchall ( ) #NEWLINE# if cur : #NEWLINE# #INDENT# return rows [ 0 ] [ 0 ] #NEWLINE# #UNINDENT# return None