def lookup_group_plugin(group_type=None):
 if (group_type is None):
  return _default_group_plugin
 return _group_plugins.get(group_type, (_default_organization_plugin if (group_type == 'organization') else _default_group_plugin))

def lookup_group_plugin ( group_type = None ) : if ( group_type is None ) : return _default_group_plugin return _group_plugins . get ( group_type , ( _default_organization_plugin if ( group_type == 'organization' ) else _default_group_plugin ) )
returns the form plugin associated with the given group type .