

def configure_rules(self, rules, parent=None):
    '\n            Configure all rules recursively - bind them to current RuleSet and\n            convert string references to `Field` rules.\n\n            :param rules:\n                Rule list\n            :param parent:\n                Parent rule (if any)\n        '
    result = []
    for r in rules:
        if isinstance(r, BaseRule):
            result.append(r.configure(self, parent))
        elif isinstance(r, string_types):
            result.append(self.convert_string(rules).configure(self, parent))
        else:
            raise ValueError(('Dont know how to convert %s' % repr(r)))
    return result

dataset/ETHPy150Open mrjoes/flask-admin/flask_admin/form/rules.py RuleSet.configure_rules/VarMisuse@73/160 `r`->`rules`