@@ -, +, @@ Restrictions of the form Display-X are OR'd with like-restrictions; otherwise restrictions are AND'd. any_match is the ORing and all_match is the ANDing. """ all_match = True any_match = False for restriction in values: if restriction.checkRestriction(**kwargs): any_match = True if not any_match: all_match = False restrict = restriction(match.groups()[0].strip()) if not restrict.isValid():