'Return a list of ``[(name, value), ...]`` for the current
state of the form.'

def submit_fields(self, name=None, index=None):

    submit = []
    if (name is not None):
        field = self.get(name, index=index)
        submit.append((field.name, field.value_if_submitted()))
    for (name, fields) in self.fields.items():
        if (name is None):
            continue
        for field in fields:
            value = field.value
            if (value is None):
                continue
            submit.append((name, value))
    return submit
