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
0.8.6 (2016-03-17)
Fixes unexpected indentation detection not working correctly. [href]
0.8.5 (2016-02-02)
Marks fields which contain labels as such, so the field rendering code can avoid generating nested labels.
0.8.4 (2016-01-28)
Uses the latest onegov.core release to get rid of some code. [href]
0.8.3 (2015-11-26)
Adds an error message if no actual field was defined in a definition. [href]
0.8.2 (2015-11-18)
Adds an error message if the form indentation is wrong. [href]
Adds an error message for duplicate labels. [href]
Fixes fieldsets only showing up once on static forms. [href]
0.8.1 (2015-10-15)
Use ‘de_CH’ translation instead of ‘de’ [href]
0.8.0 (2015-10-12)
Removes Python 2.x support. [href]
0.7.3 (2015-10-08)
Adds the ability to force the UploadWidget to show no special options. [href]
0.7.2 (2015-10-05)
Adds German translations, no more defining those outside the package. [href]
0.7.1 (2015-09-25)
Adds onegov.search integration for form definitions. [href]
0.7.0 (2015-09-10)
Fixes an error where optional fields had to be filled out. [href]
Adds rudimentary syntax checking with information about which line wrong. [href]
0.6.9 (2015-08-28)
Adds the ability to specifiy the submission id manually. [href]
Adds the ability to pass a custom base class to the parse_form function. [href]
0.6.8 (2015-08-26)
Adds an easier way for the often used “check if there’s a required e-mail”. [href]
Adds the ability to add submissions whose form definitions are external. [href]
0.6.7 (2015-08-18)
Adds a new widget for multiple checkbox fields. [href]
0.6.6 (2015-08-11)
Fixes installation issue with pip. [href]
0.6.5 (2015-07-13)
Fix expired submission removal not working if files had been uploaded. [href]
0.6.4 (2015-07-09)
The default form definition validator now checks that there’s at least one required E-Mail field.
0.6.3 (2015-07-02)
Adds a method to get all useful data from a form. [href]
Use content/meta defined in onegov.core. [href]
0.6.2 (2015-06-26)
Remove accidentally left in upgrade test code. [href]
0.6.1 (2015-06-26)
Adds support for onegov.core.upgrade. [href]
Remove support for Python 3.3. [href]
0.6.0 (2015-06-10)
Compress files using gzip instead of zlib, as the former is better supported. [href]
Change the submission complete method, ensuring the right polymorphic instance is returned afterwards. [href]
Make sure the received date is only set once. [href]
0.5.4 (2015-06-10)
Adds a helpful has_submissions function on the form definition model. [href]
Automatically delete pending submissions when removing a definition. [href]
0.5.3 (2015-06-10)
Adds a function to retrieve form definitions together with the number of complete submissions. [href]
0.5.2 (2015-06-09)
Adds a ‘received’ field to the submissions which contains the time at which the submission was received. [href]
Adds an email and a title field to the submission. [href]
Adds the ability to scope a submission collection to a specific form. [href]
0.5.1 (2015-06-08)
Store all information, even invalid one, to avoid accidentally throwing away error information. [href]
Fixes time field triggering an error. [href]
0.5.0 (2015-06-05)
Adds a very simple form syntax parser. [href]
Fixes password field not working. [href]
Uses the right class for form-definitions depending on the type. [href]
0.4.1 (2015-06-03)
Stores a checksum with each form definition and submission. [href]
Adds the ability to filter out submissions older than one hour. [href]
0.4.0 (2015-06-03)
Moves the uploaded files to their own table. [href]
0.3.1 (2015-06-02)
Fixes unicode error in Python 2.7. [href]
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.8.6.tar.gz
.
File metadata
- Download URL: onegov.form-0.8.6.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 034499d7f06718947099e192c4c7b1b420a8943be247e41979c2140a69562db6 |
|
MD5 | d6bffbe445467442fedcd5d1de746ac7 |
|
BLAKE2b-256 | 6d09be91cdc22d9ae3736ac8b1b05961b6fadde7eed2761a231e4fc9f13b757e |
File details
Details for the file onegov.form-0.8.6-py3-none-any.whl
.
File metadata
- Download URL: onegov.form-0.8.6-py3-none-any.whl
- Upload date:
- Size: 42.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b147aa97f21c2e9b2925935db7b2f483b288961ae2997fa12ae2d5f424576c25 |
|
MD5 | d2ec2d8056ff5475bc7e599ae6bc34de |
|
BLAKE2b-256 | 91f9909cc453ba34e89504dd89ce2897246433ddbbd4df171374f9fccff28670 |