FormSubmit
Description
Set of actions to process data from HTML form. Forms should be created by FormCreate macro.
Plugin currently supports the following actions:
submitattachment - attach file into specified wikipage
submitcsv - appends submited data into csv file
submitemail - send submited data on specified email
Note: FormSubmit action plugin should be used together with FormCreate macro.
Download & Release Notes
Download |
Release Version |
Moin Version |
Python Version |
Release Notes |
|
1.7, 1.8 |
2.5 |
|
|
|
1.6 |
2.5 |
|
|
|
1.6 |
2.4 |
|
Usage
See FormCreate macro
Extensibility
There is also possibility to make custom actions by easily extending SubmitBase class.
SubmitBase provides general methods that should be overriden in derived classes:
validate - in case data do not pass validation rules, this method have to raise SubmitValidationError
- sanitize - escapes incorrect or dangerous characters
submit - defines what to do with submited data
Form data are accessible through fields dictionary or through labels and values lists.
