Common OneGov form library based on WTForms.
Project description
Provides fields, widgets and shared form code, as well as the ability to define custom forms using JSON. Those forms are stored on the database and are meant to be customer defined forms.
Through the web creating of forms is possible with this, but onegov.form does not offer any UI to do that.
Run the Tests
Install tox and run it:
pip install tox tox
Limit the tests to a specific python version:
tox -e py27
Conventions
Onegov Form follows PEP8 as close as possible. To test for it run:
tox -e pep8
Onegov Form uses Semantic Versioning
Build Status
Coverage
Latests PyPI Release
License
onegov.form is released under GPLv2
Changelog
Unreleased
0.3.0 (2015-06-02)
Adds the ability to render fields for html output (without input elements). [href]
Adds the ability to upload files without losing them if the form has an unrelated validation error. [href]
Divides the submissions into ‘pending’ and ‘complete’.
Pending submissions are temporary and possibly invalid. Complete submissions are final and always valid.
[href]
Compresses uploaded files before storing them on the database. [href]
Limits the size of uploaded files. [href]
No longer stores the csrf_token with the form submission. [href]
Adds a file upload syntax. [href]
Show the ‘required’ flag, even if the requirement is conditional. [href]
0.2.3 (2015-05-29)
Fix unicode errors in Python 2.7. [href]
0.2.2 (2015-05-29)
Make sure special fields like the csrf token are included in the fieldsets. [href]
0.2.1 (2015-05-28)
Makes sure multiple fields with the same labels are handled more intelligently. [href]
0.2.0 (2015-05-28)
Rewrites most of the parsing logic. Pyparsing is no longer used for indentation, instead the form source is transalted into YAML first, then parsed further.
This fixes all known indentation problems.
[href]
0.1.0 (2015-05-22)
Adds the ability to store forms and related submissions in the database. [href]
Adds a custom markdownish form syntax.
See http://onegov.readthedocs.org/en/latest/onegov_form.html#module-onegov.form.parser.grammar [href]
0.0.1 (2015-04-29)
Initial Release [href]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file onegov.form-0.3.0.tar.gz
.
File metadata
- Download URL: onegov.form-0.3.0.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5eaf4182046aac9562dbde82955847e667ca40df2b0a97ab5e9283c9c543d5d |
|
MD5 | ef22a403beec8ec575bebc3375b753f9 |
|
BLAKE2b-256 | 25a0ed3dd02b4335ec8ca23ca5f948de9663e7e83b4d9adfd88ed851d17e6e20 |
File details
Details for the file onegov.form-0.3.0-py2-none-any.whl
.
File metadata
- Download URL: onegov.form-0.3.0-py2-none-any.whl
- Upload date:
- Size: 32.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3faf571acb14b787d93a6bf8b5a4e768eda4cac56c210bf31bc8bee539e95cfe |
|
MD5 | 06887c4553df785882f2f7f6d32e9587 |
|
BLAKE2b-256 | 93ac9c3bf0cad02ab699967afcf49571448cd2d95eff6b5eec3352f3520367c9 |