Add condition operators for working with regexes.
Review Request #8346 — Created Aug. 25, 2016 and submitted
This introduces two new operators for matching or not matching against a
user-provided regex. The regex is checked for validity and stored as a
serialized pattern in the condition, and then used to match the given
string during the condition matching process.
BaseConditionStringChoice
now includes these by default. It also adds
the "Does Not Contain" operator, which was missing before.
Unit tests pass.
- Change Summary:
-
Removed unused imports.
- Commit:
-
9b3bfdad39195ac265bdbdb5afe5325f6156f148ea69d0868252ff51ec4e5a4fd5360d20b3c139bb
-
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
- Change Summary:
-
Removed some redundant text that were in the docstrings redundantly.
- Commit:
-
ea69d0868252ff51ec4e5a4fd5360d20b3c139bb59e579881e80441ac3fd0bd16aaf18e5684a48c5
-
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 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