#NEWLINE# def raw_details( request , type ) : #NEWLINE# #INDENT# if ( not ( type in ( 'preset' , ) ) ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# if ( ( type == 'preset' ) and request . GET . get ( 'id' , False ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# preset = PreSetReply . objects . get ( id = request . GET . get ( 'id' ) ) #NEWLINE# return HttpResponse ( preset . body ) #NEWLINE# #UNINDENT# except PreSetReply . DoesNotExist : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# #UNINDENT# raise Http404