formencode.htmlrename
– Rename fields in an HTML form¶
Module to rename form fields
Module Contents¶
- formencode.htmlrename.rename(form, rename_func)¶
Rename all the form fields in the form (a string), using rename_func
rename_func will be called with one argument, the name of the field, and should return a new name.
- formencode.htmlrename.add_prefix(form, prefix, dotted=False)¶
Add the given prefix to all the fields in the form.
If dotted is true, then add a dot between prefix and the previous name. Empty fields will use the prefix as the name (with no dot).