Skip to main content

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

Build Status

Coverage

Project Coverage

Latests PyPI Release

Latest PyPI Release

License

onegov.form is released under GPLv2

Changelog

Unreleased

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)

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

onegov.form-0.5.3.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

onegov.form-0.5.3-py2-none-any.whl (36.1 kB view details)

Uploaded Python 2

File details

Details for the file onegov.form-0.5.3.tar.gz.

File metadata

  • Download URL: onegov.form-0.5.3.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for onegov.form-0.5.3.tar.gz
Algorithm Hash digest
SHA256 6a1ff9dcf4ff25327723a406ffe789b53f21cfe6324259f2bdc130470ea767fd
MD5 1654ce7c85899c98c1d46d6e812b54a0
BLAKE2b-256 8bb153d6abe8b60809b91491e70cd799ae0bbfe29153ac393b0ba6ba33614301

See more details on using hashes here.

File details

Details for the file onegov.form-0.5.3-py2-none-any.whl.

File metadata

File hashes

Hashes for onegov.form-0.5.3-py2-none-any.whl
Algorithm Hash digest
SHA256 b7655918a4543a9d889f64e7c423122e13935d801a9df7a1b8e5f1ba4d31144e
MD5 07afebf98452dbd7ea710115616a07b3
BLAKE2b-256 6461f7d1eef9b0a5778fde2185fa6663ee928d7f0b2634986c0e5d50c3d728ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page