dashboard
repositories
filestore
activity
search
login
RedHatTraining
/
pyramid
summary
reflog
commits
tree
tickets
docs
forks
compare
blame
|
history
|
raw
format source using black
Michael Merickel
2018-10-15
0c29cf2df41600d3906d521c72991c7686018b71
[RedHatTraining/pyramid.git]
/
tests
/
pkgs
/
viewdecoratorapp
/
views
/
views.py
1
2
3
4
5
6
7
8
9
10
11
from pyramid.view import view_config
@view_config(renderer='json', name='first')
def first(request):
return {'result': 'OK1'}
@view_config(renderer='json', name='second')
def second(request):
return {'result': 'OK2'}