def get_view_plugins(view_types):
 view_plugins = []
 for view_type in view_types:
  view_plugin = get_view_plugin(view_type)
  if view_plugin:
   view_plugins.append(view_plugin)
 return view_plugins

def get_view_plugins ( view_types ) : view_plugins = [ ] for view_type in view_types : view_plugin = get_view_plugin ( view_type ) if view_plugin : view_plugins . append ( view_plugin ) return view_plugins
returns a list of the view plugins associated with the given view_types .