def _verify_plugin_type(plugin_type):
 if (hasattr(plugin_type, '__module__') and issubclass(plugin_type, CMSPluginBase)):
  plugin_pool.set_plugin_meta()
  plugin_model = plugin_type.model
  assert (plugin_type in plugin_pool.plugins.values())
  plugin_type = plugin_type.__name__
 elif isinstance(plugin_type, six.string_types):
  try:
   plugin_model = plugin_pool.get_plugin(plugin_type).model
  except KeyError:
   raise TypeError('plugin_type must be CMSPluginBase subclass or string')
 else:
  raise TypeError('plugin_type must be CMSPluginBase subclass or string')
 return (plugin_model, plugin_type)

def _verify_plugin_type ( plugin_type ) : if ( hasattr ( plugin_type , '__module__' ) and issubclass ( plugin_type , CMSPluginBase ) ) : plugin_pool . set_plugin_meta ( ) plugin_model = plugin_type . model assert ( plugin_type in plugin_pool . plugins . values ( ) ) plugin_type = plugin_type . __name__ elif isinstance ( plugin_type , six . string_types ) : try : plugin_model = plugin_pool . get_plugin ( plugin_type ) . model except KeyError : raise TypeError ( 'plugin_type must be CMSPluginBase subclass or string' ) else : raise TypeError ( 'plugin_type must be CMSPluginBase subclass or string' ) return ( plugin_model , plugin_type )
verifies the given plugin_type is valid and returns a tuple of .