def make_filter(name, op, values):
 datastore_types.ValidateProperty(name, values)
 properties = datastore_types.ToPropertyPb(name, values)
 if isinstance(properties, list):
  filters = [PropertyFilter(op, prop) for prop in properties]
  return CompositeFilter(CompositeFilter.AND, filters)
 else:
  return PropertyFilter(op, properties)

def make_filter ( name , op , values ) : datastore_types . ValidateProperty ( name , values ) properties = datastore_types . ToPropertyPb ( name , values ) if isinstance ( properties , list ) : filters = [ PropertyFilter ( op , prop ) for prop in properties ] return CompositeFilter ( CompositeFilter . AND , filters ) else : return PropertyFilter ( op , properties )
constructs a filterpredicate from the given name .