Add an ability to hook into webapi method view calling.

Review Request #6086 — Created July 9, 2014 and submitted

Information

Djblets
release-0.8.x
81a84a4...

Reviewers

WebAPIResource.__call__ no longer directly calls the method-based view
(get, create, etc.). Instead, it calls the new call_method_view()
function, which defaults to calling the view. Subclasses can override
this to perform additional checks or pass additional data without having
to decorate all views.

Successfully overrode the function in a subclass and was able to short-circuit
calling the view.

Unit tests pass.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/webapi/resources.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/webapi/resources.py
    
    
  2. 
      
david
  1. Ship It!

  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.8.x (8663420)