Fix a regression in accessing the username for the session.

Review Request #6900 — Created Feb. 3, 2015 and submitted

Information

RBTools
release-0.7.x
fd3ce84...

Reviewers

My previous optimization to fetching the user resource along with the
session broke the get_username() function, which attempted to follow a
now non-existent link. It's been updated to get the expanded user
resource instead and access the username from that.

Ran rbt status. Before, it would crash with an attribute error. After,
it showed me a list of my open review requests.

reviewbot
  1. Tool: PEP8 Style Checker
    Processed Files:
        rbtools/utils/users.py
    
    
    
    Tool: Pyflakes
    Processed Files:
        rbtools/utils/users.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.7.x (c46e472)