randomcarl / cr-data-manager

Automatically exported from code.google.com/p/cr-data-manager
0 stars 0 forks source link

Patch for /trunk/data-manager/dmparser.py #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Rulesets in OR mode match everything. The original code has the FOR loop return 
True at the end, even if none of the rules matched. This works fine for AND 
mode because if a single rule does not match, the loop exits and returns False 
immediately. Completing the loop in AND mode means all the rules matched. In OR 
mode, the loop exits with True when the first match is found. If no matches are 
found by the end of the loop, we need to return False by default instead.

Original issue reported on code.google.com by a...@zweimiller.com on 19 Feb 2014 at 4:22

Attachments: