#NEWLINE# def handle_object_get( request ) : #NEWLINE# #INDENT# object_id = request . path . split ( '/' ) [ 1 ] #NEWLINE# fields = request . args . get ( 'fields' , '' ) . split ( ',' ) #NEWLINE# resp = db . get_object_by_id ( object_id , fields ) #NEWLINE# body = _pretty_dump ( resp ) #NEWLINE# return Response ( body , mimetype = 'text/javascript' )