Per http://ift.tt/1Go7QsN I can decorate a Pyramid view:
@view_config(decorator=a_special_decorator, renderer='json')
def myview(request):
return {'a':1}
OK but I need to ensure that every view in Pyramid app is decorated with a_special_decorator
. Is there a way of ensuring, either in live app or in test phase, that it is so?
Aucun commentaire:
Enregistrer un commentaire