#NEWLINE# def get( self ) : #NEWLINE# #INDENT# adminoptions = AdminOptions . get_by_key_name ( 'credentials' ) #NEWLINE# if adminoptions : #NEWLINE# #INDENT# twitterpass = adminoptions . twitterpass #NEWLINE# twitteruser = adminoptions . twitteruser #NEWLINE# prowlkey = adminoptions . prowlkey #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# twitterpass = 'Change Me' #NEWLINE# twitteruser = 'Change Me' #NEWLINE# prowlkey = 'Change Me' #NEWLINE# #UNINDENT# serverlist = db . GqlQuery ( 'SELECT * FROM Server' ) #NEWLINE# user = users . get_current_user ( ) #NEWLINE# template_values = { #NEWLINE# #INDENT# 'user' : user , #NEWLINE# 'twitteruser' : twitteruser , #NEWLINE# 'twitterpass' : twitterpass , #NEWLINE# 'serverlist' : serverlist , #NEWLINE# 'prowlkey' : prowlkey , #NEWLINE# 'adminoptions' : adminoptions , #NEWLINE# #UNINDENT# } #NEWLINE# path = os . path . join ( os . path . dirname ( __file__ ) , 'admin.html' ) #NEWLINE# self . response . out . write ( template . render ( path , template_values ) )