• 
      

    Add standard choices, operators, and value fields for conditions.

    Review Request #8269 — Created July 6, 2016 and submitted

    Information

    Djblets
    release-0.10.x
    f0d121f...

    Reviewers

    This introduces a set of standard objects for conditions. These provide
    base choice classes for working with strings, integers, and booleans,
    along with a set of operators appropriate to each. There are also value
    fields designed to properly handle booleans, integers, and strings in a
    more convenient way.
    
    Future changes will introduce additional types, such as for dates/times.

    Unit tests pass.

    Used these operators with some changes for a Review Board extension.

    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          djblets/conditions/values.py
          djblets/conditions/operators.py
          djblets/conditions/choices.py
          djblets/conditions/tests/test_values.py
          djblets/conditions/tests/test_operators.py
      
      
      
      Tool: Pyflakes
      Processed Files:
          djblets/conditions/values.py
          djblets/conditions/operators.py
          djblets/conditions/choices.py
          djblets/conditions/tests/test_values.py
          djblets/conditions/tests/test_operators.py
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-0.10.x (7eb29f8)