#NEWLINE# @ views . route ( '/search/' ) #NEWLINE# @ views . route ( '/search/before-<before_ts>/' ) #NEWLINE# def search( before_ts = None ) : #NEWLINE# #INDENT# q = request . args . get ( 'q' ) #NEWLINE# if ( not q ) : #NEWLINE# #INDENT# abort ( 404 ) #NEWLINE# #UNINDENT# ( posts , older ) = collect_posts ( None , before_ts , int ( get_settings ( ) . posts_per_page ) , None , include_hidden = True , search = q ) #NEWLINE# return render_posts ( ( 'Search: ' + q ) , posts , older )