def processCheckIn(request):
if request.method == '<STR_LIT:POST>':<EOL><INDENT>event_id = request.POST.get('<STR_LIT>')<EOL>reg_ids = request.POST.getlist('<STR_LIT>')<EOL>if not event_id:<EOL><INDENT>return HttpResponse(_("<STR_LIT>"))<EOL><DEDENT>all_eventreg = list(EventRegistration.objects.filter(event__id=event_id))<EOL>for this_reg in all_eventreg:<EOL><INDENT>if str(this_reg.registration.id) in reg_ids and not this_reg.checkedIn:<EOL><INDENT>this_reg.checkedIn = True<EOL>this_reg.save()<EOL><DEDENT>elif str(this_reg.registration.id) not in reg_ids and this_reg.checkedIn:<EOL><INDENT>this_reg.checkedIn = False<EOL>this_reg.save()<EOL><DEDENT><DEDENT>return HttpResponse("<STR_LIT>")<EOL><DEDENT>
This function handles the Ajax call made when a user is marked as checked in