10 lines
361 B
Python
10 lines
361 B
Python
from pyramid.view import view_config
|
|
from .view_helpers import *
|
|
|
|
|
|
@view_config(route_name="fluidshots_all", renderer="templates/fluidshots.jinja2")
|
|
@view_config(route_name="json_fluidshots_all", renderer="prettyjson")
|
|
def fluidshots_all(request):
|
|
fluidshots = list(request.db['fluidShots'].find())
|
|
return {'navgroup': 'fluidshots', 'data': fluidshots}
|