1 # -*- coding: utf-8 -*-
2 from piston.resource import Resource
5 class CsrfExemptResource(Resource):
6 """A Custom Resource that is csrf exempt"""
7 def __init__(self, handler, authentication=None):
8 super(CsrfExemptResource, self).__init__(handler, authentication)
9 self.csrf_exempt = getattr(self.handler, 'csrf_exempt', True)