Improve our capabilities support to not hard-code 2 level resolution.

Review Request #3791 — Created Jan. 26, 2013 and submitted

Information

RBTools
master

Reviewers

Improve our capabilities support to not hard-code 2 level resolution.

Our capabilities are no longer limited to a category.name format.
Capabilities.has_capability can take variable arguments and traverse the
capabilities list from that. For example, passing 'foo', 'bar', 'foobar'
will properly navigate {'foo': {'bar': {'foobar': True}}}.
New unit tests pass.
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/api/tests.py
        rbtools/api/capabilities.py
      Ignored Files:
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (982f6edbe2baf9f7f09be7ac950c6d6cb4ed239f)