onvalidation = my_form_processing
registers a callback (called after validation and before accepting).
This does not work
def my_form_processing(table_name, form): form.vars.field1 =
table_name # I know useless, it just
because the callback function must take a single parameter, the form.
You can do instead
def my_form_processing(form):
form.vars.field1 =
form.table.name # I know useless, it just
Hope this helps.