#NEWLINE# def success( self , message = None ) : #NEWLINE# #INDENT# 'Returns the JSON representation of a success message' #NEWLINE# self . response . set_status ( 200 ) #NEWLINE# success = { #NEWLINE# #INDENT# 'error' : False , #NEWLINE# 'code' : 200 , #NEWLINE# #UNINDENT# } #NEWLINE# if message : #NEWLINE# #INDENT# success [ 'message' ] = self #NEWLINE# #UNINDENT# self . json ( success )