Add new helper functions for getting URLs to resources.

Review Request #7498 — Created July 7, 2015 and submitted

Information

Djblets
release-0.9.x
0ee6240...

Reviewers

This adds some useful utility functions to WebAPIResource for getting
the item resource or list resource, given a set of keyword arguments for
URL resolution.

It also provides a function that now handles the actual building of the
URL. This can be overridden by projects if they have additional work
needed for URL resolution, or have a custom resolver.

Djblets and Review Board unit tests pass.

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

Status: Closed (submitted)

Change Summary:

Pushed to release-0.9.x (9b55fc1)
Loading...