• 
      

    Add login method to RBClient

    Review Request #3843 — Created Feb. 5, 2013 and submitted

    Information

    RBTools
    master

    Reviewers

    Add login method to RBClient
    
    Previously a new RBClient object would need to be created to reset
    credentials without the server returning Not Authenticated to a
    request. Now the RBClient has a 'login' method which allows the
    username and passsword to be reset.
    
    The new credentials will be sent in the next request made to the API.
    This includes requests made from resources which have already been
    created (i.e. the credentials are global to all resources created from
    the RBClient)
    Made requests after calling method with both valid, invalid, and missing
    cookies; ensured the proper credentials were sent to the server.
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          rbtools/api/transport/sync.py
          rbtools/api/client.py
          rbtools/api/transport/__init__.py
        Ignored Files:
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    1. 
        
    2. rbtools/api/transport/sync.py (Diff revision 1)
       
       
      Should this pass in *args, **kwargs, for consistency?
      1. Probably a good idea
    3. 
        
    SM
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (bc8c90d645fa6b61775678177ae948349ed946cc).