def convert_post_to_VERB(self, request, verb):
        """
        Force Django to process the VERB.
        """
        # Based off of ``piston.utils.coerce_put_post``. Similarly BSD-licensed.
        # And no, the irony is not lost on me.
        if request.method == verb:
            if hasattr(request, '_post'):
                del(request._post)
                del(request._files)

            try:
                request.method = "POST"
                request._load_post_and_files()
                request.method = verb
            except __HOLE__:
                request.META['REQUEST_METHOD'] = 'POST'
                request._load_post_and_files()
                request.META['REQUEST_METHOD'] = verb

            setattr(request, verb, request.POST)

        return request
dataset/ETHPy150Open toastdriven/piecrust/piecrust/resources.py/Resource.convert_post_to_VERB