@classmethod
    def get_result(cls, request):
        """
            Get the result (or None) of a transparent redirect given a Django
            Request object.

                >>> result = MyForm.get_result(request)
                >>> if result.is_success:
                        take_some_action()

            This method uses the request.META["QUERY_STRING"] parameter to get
            the HTTP query string.
        """
        try:
            result = braintree.TransparentRedirect.confirm(request.META["QUERY_STRING"])
        except (__HOLE__, braintree.exceptions.not_found_error.NotFoundError):
            result = None

        return result
dataset/ETHPy150Open danielgtaylor/braintree_django/django_braintree/forms.py/BraintreeForm.get_result