Add LocalSite rooting for the ReviewGroupResource

Review Request #1958 — Created Nov. 30, 2010 and submitted

Information

Review Board
master

Reviewers

Add LocalSite rooting for the ReviewGroupResource

This change adds namespacing and unit tests for the ReviewGroupResource and
ReviewGroupUserResource.

 
chipx86
  1. 
      
  2. reviewboard/webapi/resources.py (Diff revision 1)
     
     
     
    local_site_name can go in the argument list.
    
    Does this work when local_site_name is None? Can't remember what Django does when the relation can't be resolved in this case. Want to make sure that the Group query works if local_site__name never matches anything.
    1. The local_site__name relation will return None when name is None. I'll add it to the args list.
  3. reviewboard/webapi/tests.py (Diff revision 1)
     
     
    Can this use the new constant?
    1. That constant was a class member of a different class, but I'll add one here too.
  4. 
      
david
Review request changed
chipx86
  1. 
      
  2.