• 
      

    Allow local_site_reverse to take an actual LocalSite.

    Review Request #6302 — Created Sept. 8, 2014 and submitted

    Information

    Review Board
    release-2.0.x
    7edac8a...

    Reviewers

    local_site_reverse was able to take a LocalSite's name, or a request
    object, but if you actually had a LocalSite (or None), you'd have to
    write your own conditional to extract the name and pass it.

    Now, local_site_reverse can take a LocalSite. This saves a database
    query, if one is already available, and simplifies calling code.

    Unit tests pass.

    Used this with another change I'm about to put up.

    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/site/urlresolvers.py
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/site/urlresolvers.py
      
      
    2. 
        
    david
    1. Ship It!

    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.0.x (46a5686)