def _param_filter_match(vobject_item, filter_, parent_name):
 name = filter_.get('name')
 children = getattr(vobject_item, ('%s_list' % parent_name), [])
 condition = any(((name in child.params) for child in children))
 if len(filter_):
  if (filter_[0].tag == _tag('C', 'text-match')):
   return (condition and _text_match(vobject_item, filter_[0], parent_name, name))
  elif (filter_[0].tag == _tag('C', 'is-not-defined')):
   return (not condition)
 else:
  return condition

def _param_filter_match ( vobject_item , filter_ , parent_name ) : name = filter_ . get ( 'name' ) children = getattr ( vobject_item , ( '%s_list' % parent_name ) , [ ] ) condition = any ( ( ( name in child . params ) for child in children ) ) if len ( filter_ ) : if ( filter_ [ 0 ] . tag == _tag ( 'C' , 'text-match' ) ) : return ( condition and _text_match ( vobject_item , filter_ [ 0 ] , parent_name , name ) ) elif ( filter_ [ 0 ] . tag == _tag ( 'C' , 'is-not-defined' ) ) : return ( not condition ) else : return condition
check whether the item matches the param-filter filter_ .