Metadata-Version: 2.0
Name: onegov.form
Version: 0.3.1
Summary: Common OneGov form library based on WTForms.
Home-page: http://github.com/seantis/onegov.form
Author: Seantis GmbH
Author-email: info@seantis.ch
License: GPLv2
Platform: any
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Requires-Dist: humanize
Requires-Dist: jsonpickle
Requires-Dist: onegov.core (>=0.3.1)
Requires-Dist: pyparsing
Requires-Dist: pyyaml
Requires-Dist: python-magic
Requires-Dist: python-stdnum
Requires-Dist: wtforms
Requires-Dist: wtforms-components[color]
Requires-Dist: unidecode
Provides-Extra: test
Requires-Dist: coverage; extra == 'test'
Requires-Dist: onegov.testing; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: webob; extra == 'test'


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 <http://semver.org/>`_

Build Status
------------

.. image:: https://travis-ci.org/OneGov/onegov.form.png
  :target: https://travis-ci.org/OneGov/onegov.form
  :alt: Build Status

Coverage
--------

.. image:: https://coveralls.io/repos/OneGov/onegov.form/badge.png?branch=master
  :target: https://coveralls.io/r/OneGov/onegov.form?branch=master
  :alt: Project Coverage

Latests PyPI Release
--------------------
.. image:: https://pypip.in/v/onegov.form/badge.png
  :target: https://crate.io/packages/onegov.form
  :alt: Latest PyPI Release

License
-------
onegov.form is released under GPLv2

Changelog
---------

Unreleased
~~~~~~~~~~

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]


