'Process data posted from the attendee details form.'

def _process_registration_details(self, details):

    registrations = {}
    global_values = {}
    for (key, value) in details.iteritems():
        (counter, field_name) = key.split('-', 1)
        if (counter == '0'):
            global_values[field_name] = value
        else:
            registrations.setdefault(counter, dict())[field_name] = value
    for (key, value) in global_values.iteritems():
        for registration in registrations.values():
            registration[key] = value
    return registrations.values()
