#NEWLINE# def get( self ) : #NEWLINE# #INDENT# user = self . GetCurrentUser ( ) #NEWLINE# if self : #NEWLINE# #INDENT# result = { #NEWLINE# #INDENT# 'user' : user . nickname ( ) , #NEWLINE# 'foo' : [ 1 , 2 , 3 , { #NEWLINE# #INDENT# 'bar' : [ 4 , 5 , 6 ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . respondWithDictionaryAsJSON ( result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . error ( 401 ) #NEWLINE# self . respondWithDictionaryAsJSON ( { #NEWLINE# #INDENT# 'error' : 'Authentication required.' , #NEWLINE# #UNINDENT# } )