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 |
2013-03-25 |
1.9.7 |
2.6, 2.7 |
new version from ThomasWaldmann |
|
|
1.7, 1.8 |
2.5 |
|
|
|
1.6 |
2.5 |
|
|
|
1.6 |
2.4 |
|
See also the repository for the latest version: http://hg.moinmo.in/moin/extensions/summary
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.
Bugs
Messages
Hi,
some month ago this library was added to the extension repo at
http://hg.moinmo.in/moin/extensions/file/tip/data/plugin/action
https://bitbucket.org/ReimarBauer/moin1-extensions/src/tip/data/plugin/action?at=default
Improving it there is welcome
-- ReimarBauer 2013-05-30 02:28:24