#NEWLINE# def default_options_view( resource , request , methods = None ) : #NEWLINE# #INDENT# 'Default OPTIONS view for resources.' #NEWLINE# response = HTTPNoContent ( ) #NEWLINE# if ( methods is None ) : #NEWLINE# #INDENT# state = RestState . from_resource ( resource ) #NEWLINE# methods = state . supported_methods ( ) #NEWLINE# #UNINDENT# response . headers [ 'Access-Control-Allow-Methods' ] = ', ' . join ( methods ) #NEWLINE# return response