Trophy case 3,4

Review Request #3878 — Created Feb. 16, 2013 and discarded — Latest diff uploaded

Information

Review Board
master

Reviewers

https://hackpad.com/Trophy-Case-Design-MK30awhb3nL
(1)
unit test, named test_importing_trophies, do follow things.
1.Add User object named user1.
2.Add 2 reveiw requests associated with user1, display_id=1000 for Milestone Trophy and display_id=1221 for Palindrome Trophy.
3.Compute user1's all trophies.
And, this code passed test.

(2)
I made sure profile.extra_data works.
I set the pdb.set_trace in "if not extra_data.get('has_trophy_case', False)", then I tried to access twice and I checked that pdb is called only once.