#NEWLINE# def get_request_extensions( self ) : #NEWLINE# #INDENT# request_exts = [ ] #NEWLINE# def _goose_handler( req , res ) : #NEWLINE# #INDENT# data = jsonutils . loads ( res . body ) #NEWLINE# data [ 'FOXNSOX:googoose' ] = req . GET . get ( 'chewing' ) #NEWLINE# res . body = jsonutils . dump_as_bytes ( data ) #NEWLINE# return res #NEWLINE# #UNINDENT# req_ext1 = extensions . RequestExtension ( 'GET' , '/dummy_resources/:(id)' , _goose_handler ) #NEWLINE# request_exts . append ( req_ext1 ) #NEWLINE# def _bands_handler( req , res ) : #NEWLINE# #INDENT# data = jsonutils . loads ( res . body ) #NEWLINE# data [ 'FOXNSOX:big_bands' ] = 'Pig Bands!' #NEWLINE# res . body = jsonutils . dump_as_bytes ( data ) #NEWLINE# return res #NEWLINE# #UNINDENT# req_ext2 = extensions . RequestExtension ( 'GET' , '/dummy_resources/:(id)' , _bands_handler ) #NEWLINE# request_exts . append ( req_ext2 ) #NEWLINE# return request_exts