#NEWLINE# def retrieve( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# lookup_field = self . lookup_field #NEWLINE# lookup = self . kwargs . get ( lookup_field ) #NEWLINE# if ( lookup == self . public_forms_endpoint ) : #NEWLINE# #INDENT# self . object_list = self . _get_public_forms_queryset ( ) #NEWLINE# page = self . paginate_queryset ( self . object_list ) #NEWLINE# if ( page is not None ) : #NEWLINE# #INDENT# serializer = self . get_pagination_serializer ( page ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# serializer = self . get_serializer ( self . object_list , many = True ) #NEWLINE# #UNINDENT# return Response ( serializer . data ) #NEWLINE# #UNINDENT# xform = self . get_object ( ) #NEWLINE# export_type = kwargs . get ( 'format' ) #NEWLINE# query = request . GET . get ( 'query' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# token = request . GET . get ( 'token' ) #NEWLINE# meta = request . GET . get ( 'meta' ) #NEWLINE# if ( ( export_type is None ) or ( export_type in [ 'json' ] ) ) : #NEWLINE# #INDENT# return super ( XFormViewSet , self ) . retrieve ( request , * args , ** kwargs ) #NEWLINE# #UNINDENT# return custom_response_handler ( request , xform , query , export_type , token , meta )