def handle_reindex(request):
 mapping_type_names = [name.replace('check_', '') for name in request.POST.keys() if name.startswith('check_')]
 reindex(mapping_type_names)
 return HttpResponseRedirect(request.path)

def handle_reindex ( request ) : mapping_type_names = [ name . replace ( 'check_' , '' ) for name in request . POST . keys ( ) if name . startswith ( 'check_' ) ] reindex ( mapping_type_names ) return HttpResponseRedirect ( request . path )
caculates and kicks off indexing tasks .