Refactor manage.py to be more easily callable by wrappers.

Review Request #3854 — Created Feb. 7, 2013 and submitted

Information

Review Board
release-1.7.x

Reviewers

Refactor manage.py to be more easily callable by wrappers.

This fixes up manage.py so it can be called with a custom settings file
by a wrapper (such as another manage.py script). There's now a 'main'
function that takes a settings module and operates on that, instead of
assuming it's using the 'settings' module from reviewboard.settings. By
default, of course, this is reviewboard.settings.

This is used by RBCommons to reduce code duplication, since we want the
same logic, but a different settings.
Tested devserver and unit tests with RB.

Tested the wrapper in RBCommons.
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/manage.py
      Ignored Files:
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-1.7.x (944ffcc551903556a2d8318428aff026528a2d99)