def get_view_plugin(view_type):
 for plugin in p.PluginImplementations(p.IResourceView):
  info = plugin.info()
  name = info.get('name')
  if (name == view_type):
   return plugin

def get_view_plugin ( view_type ) : for plugin in p . PluginImplementations ( p . IResourceView ) : info = plugin . info ( ) name = info . get ( 'name' ) if ( name == view_type ) : return plugin
returns the iresourceview plugin associated with the given view_type .