def index( r ) : try : images = controllers.get_list_of_pins( offset=3 ) return render( r, 'pins_core/list.html', { 'images' : images } ) except exceptions.NoResults as e : return render( r, 'pins_core/error.html', { 'error' : e } )
def pins( r, image_year=0, image_month=0, image_day=0 ) : images = controllers.get_list_of_pins( image_year, image_month, image_day ) return render( r, 'pins_core/pinboard.html', { 'images' : images } )