#NEWLINE# @ bp . route ( '/previewinfo' ) #NEWLINE# def get_preview_info( ) : #NEWLINE# #INDENT# alt = ( request . args . get ( 'alt' ) or PRIMARY_ALT ) #NEWLINE# record = g . admin_context . pad . get ( request . args [ 'path' ] , alt = alt ) #NEWLINE# if ( record is None ) : #NEWLINE# #INDENT# return jsonify ( exists = False , url = None , is_hidden = True ) #NEWLINE# #UNINDENT# return jsonify ( exists = True , url = record . url_path , is_hidden = record . is_hidden )