def _CompileFilters(config):
 filters = []
 for filter_type in iterkeys(config):
  compiler = FILTER_COMPILERS.get(filter_type)
  if (compiler is not None):
   for filter_config in _ListOf(config[filter_type]):
    compiledFilter = compiler(filter_config)
    filters.append(compiledFilter)
 return filters

def _CompileFilters ( config ) : filters = [ ] for filter_type in iterkeys ( config ) : compiler = FILTER_COMPILERS . get ( filter_type ) if ( compiler is not None ) : for filter_config in _ListOf ( config [ filter_type ] ) : compiledFilter = compiler ( filter_config ) filters . append ( compiledFilter ) return filters
given a filter config dictionary .