#NEWLINE# def cat_view( request , cat_id ) : #NEWLINE# #INDENT# 'View an existing category.' #NEWLINE# if ( not cat_id ) : #NEWLINE# #INDENT# abort ( 400 ) #NEWLINE# #UNINDENT# kwargs = category . Category ( REDIS , cat_id = cat_id ) . to_dict ( ) #NEWLINE# slice = request . args . get ( 'time_slice' , None ) #NEWLINE# if slice : #NEWLINE# #INDENT# kwargs [ 'time_slice' ] = slice #NEWLINE# #UNINDENT# return render_template ( 'category.html' , cat_id = cat_id , ** kwargs )