      def put(self, request, *args, **kwargs):
          return HttpResponse(("Found %s in request.DATA, content : %s" %
              (type(request.DATA), request.DATA)))
  
  
  class MockView(DRFView):
      """
      A view that just acts as a proxy to call non-djangorestframework views, while still
      displaying the browsable API interface.
      """
  
      view_class = None
  
      def dispatch(self, request, *args, **kwargs):
          self.request = request
          if self.get_request().method in ['PUT', 'POST']:
              self.response = self.view_class.as_view()(request, *args, **kwargs)
          return super(MockView, self).dispatch(request, *args, **kwargs)
  
      def get(self, request, *args, **kwargs):
          return
  
      def put(self, request, *args, **kwargs):
          return self.response.content
  
      def post(self, request, *args, **kwargs):
          return self.response.content
  
      def __getattribute__(self, name):
          if name == '__name__':
              return self.view_class.__name__
          elif name == '__doc__':
              return self.view_class.__doc__
          else:
              return super(MockView, self).__getattribute__(name)
  
 
</s> remove         return pickle.load(open(pathname, 'rb'))
 </s> add         return Response(pickle.load(open(pathname, 'rb'))) </s> remove         return "GET request to AnotherExampleResource %s" % num
 </s> add         return Response("GET request to AnotherExampleResource %s" % num) </s> remove         return open(pathname, 'r').read()
 </s> add         return Response(open(pathname, 'r').read()) </s> remove         return self.CONTENT
 </s> add         return Response(self.CONTENT) </s> remove         return [reverse('stored-object', kwargs={'key':key}) for key in ctime_sorted_basenames]
 </s> add         return Response([reverse('stored-object', kwargs={'key':key}) for key in ctime_sorted_basenames])
      def put(self, request, *args, **kwargs):
          return HttpResponse(("Found %s in request.DATA, content : %s" %
              (type(request.DATA), request.DATA)))
  
































keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace
 modified examples, somethin' still broken, can't find what 
examples/requestexample/views.py