  
      def __init__(self, view=None, depth=None, stack=[], **kwargs):
          super(BaseResource, self).__init__(depth, stack, **kwargs)
          self.view = view
  
      def validate_request(self, data, files=None):
          """
          Given the request content return the cleaned, validated content.
 
</s> remove         Typically raises a :exc:`response.ErrorResponse` with status code 400 (Bad Request) on failure.
 </s> add         Typically raises a :exc:`response.ErrorResponse` with status code 400
        (Bad Request) on failure. </s> remove     Do the same as `django.core.urlresolvers.reverse` but using
    *request* to build a fully qualified URL.
 </s> add     Same as `django.core.urlresolvers.reverse`, but optionally takes a request
    and returns a fully qualified URL, using the request to get the base URL. </s> remove def reverse_lazy(viewname, request, *args, **kwargs):
    """
    Do the same as `django.core.urlresolvers.reverse_lazy` but using
    *request* to build a fully qualified URL.
    """
    url = django_reverse_lazy(viewname, *args, **kwargs)
    return request.build_absolute_uri(url)
 </s> add reverse_lazy = lazy(reverse, str) </s> remove         Update/create a stored object, by pickling the request content to a locally stored file.
 </s> add         Update/create a stored object, by pickling the request content to a
        locally stored file. </s> remove     return request.build_absolute_uri(url)
 </s> add     if request:
        return request.build_absolute_uri(url)
    return url
        self.request = view.request
  
      def __init__(self, view=None, depth=None, stack=[], **kwargs):
          super(BaseResource, self).__init__(depth, stack, **kwargs)
          self.view = view
        self.request = view.request
  
      def validate_request(self, data, files=None):
          """
          Given the request content return the cleaned, validated content.
keep keep keep add keep keep keep keep
 reverse takes request as a kwarg for compatibility with django's reverse 
djangorestframework/resources.py