xoa.misc.match_attrs

Contents

xoa.misc.match_attrs#

xoa.misc.match_attrs(obj, checks, ignorecase=True, transform=None)[source]#

Check that at least one of the attributes matches check list

Parameters:
  • obj (object)

  • checks (dict) – A dictionary of (attribute name, checklist), checklist being an iterable as accepted by match_string().