X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c3e563338050cf161ed6568d01c8a5f010257c2f..ff382f6c37063c0c4c5d21c2834a8759e25c5d02:/src/api/helpers.py?ds=sidebyside diff --git a/src/api/helpers.py b/src/api/helpers.py deleted file mode 100644 index ffe92846f..000000000 --- a/src/api/helpers.py +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. -# -from piston.resource import Resource - - -class CsrfExemptResource(Resource): - """A Custom Resource that is csrf exempt""" - def __init__(self, handler, authentication=None): - super(CsrfExemptResource, self).__init__(handler, authentication) - self.csrf_exempt = getattr(self.handler, 'csrf_exempt', True)