'Helper function to process the form
@param r: the S3Request
@param form: the FORM
@param event_type: the event_type (Row)'

def accept(self, r, form, event_type=None):

    T = current.T
    response = current.response
    formvars = form.vars
    person_id = formvars.person_id
    success = False
    if (not formvars.get('permitted')):
        response.error = T('Payment    registration    not    permitted')
    elif person_id:
        payments = r.post_vars.get('actions')
        if payments:
            date = r.utcnow
            comments = formvars.get('comments')
            (updated, failed) = self.register_payments(person_id, payments, date=date, comments=comments)
            response.confirmation = (T('%(number)s    payment(s)    registered') % {'number': updated})
            if failed:
                response.warning = (T('%(number)s    payment(s)    not    found') % {'number': failed})
        else:
            response.error = T('No    payments    specified')
    else:
        response.error = T('Person    not    found')
    return success
