Metadata-Version: 2.4
Name: yafowil.yaml
Version: 2.1
Summary: YAFOWIL - YAML/JSON-parser for widget trees.
Home-page: http://github.com/conestack/yafowil.yaml
Author: Yafowil Contributors
Author-email: dev@conestack.org
License: Simplified BSD
Keywords: html input widgets form compound
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
License-File: LICENSE.rst
Requires-Dist: setuptools
Requires-Dist: yafowil<4.0.0,>1.0.4
Requires-Dist: PyYAML
Provides-Extra: test
Requires-Dist: yafowil[test]; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

Write YAFOWIL forms in YAML or JSON notation.

Documentation
=============

Detailed documentation for describing YAFOWIL forms with YAML can be found
`here <http://docs.yafowil.info/en/latest/yaml.html>`_

Source Code
===========

The sources are in a GIT DVCS with its main branches at
`github <http://github.com/conestack/yafowil.yaml>`_.

We'd be happy to see many forks and pull-requests ;).

Contributors
============

- Robert Niederreiter

- Attila Olah

- Jens W. Klein


Changes
=======

2.1 (2025-10-28)
----------------

- Pin upper versions of dependencies.
  [rnix]

- Switch from buildout to mxmake.
  [rnix]


2.0 (2022-12-05)
----------------

- Fix parsing of ``builders`` and ``display_renderers`` in custom parts.
  [rnix]

- Fix signature of ``yafowil.yaml.tests.test_vocab``. Property callbacks always
  gets passed ``widget`` and ``data`` as of yafowil 3.0.0.
  [rnix]

- Parse values of attributes (data-Attributes) if type() is dict.
  HTML5 Data-Attributes with i18n or callables are possible now.
  [2silver]

**Breaking changes:**

- Add ``python:`` expressions. Needed for cases where property callbacks not
  accept ``widget`` and ``data`` keyword arguments, e.g. ``datatype``. This is
  necessary because ``callable_value`` function in yafowil 3.0 no longer calls
  callable without arguments as fallback.
  [rnix]


1.3.1 (2020-07-09)
------------------

- Pass ``yaml.SafeLoader`` loader to ``yaml.load`` to prevent arbitrary code
  execution.
  [rnix]

- Cleanup.
  [rnix]


1.3 (2018-07-16)
----------------

- Python 3 compatibility.
  [rnix]

- Convert doctests to unittests.
  [rnix]


1.2 (2014-11-13)
----------------

- Feature: Support definitions written in JSON too. Since YAML and JSON are
  100% comaptible exact the same structure applies.
  [jensens, 2014-11-13]

1.1
---

- Widget definitions in yaml may point to other yaml files for form nesting
  using ``nest`` property.
  [rnix, 2014-07-18]

1.0.5
-----

- Fix test coverage.
  [rnix, jensens, 2014-04-30]

1.0.4
-----

- allow default for i18n messages in format:
  ``i18n:message_id:Default Value``
  [rnix, jensens, 2014-02-14]

1.0.3
-----

- test coverage, documentation
  [rnix, jensens]

1.0.2
-----

- accidentially set zip_safe=True which is not. Set to Fasle now.
  [jensens, 2012-03-19]

1.0.1
-----

- Adopt test for ``select`` blueprint change.
  [rnix, 2011-12-18]

- Fix automatic name setting for recursive compounds.
  [rnix, 2011-09-30]

1.0
---

- Adopt to yafowil 1.1.
  [rnix, 2011-07-07]

- Extend ``parse_from_YAML`` resolving package path instead of excepting.
  absolute or relative file path
  [rnix, 2011-07-07]

0.9.1
-----

- Add i18n support.
  [rnix, 2011-06-04]

- Fix bug where expression evaluation was not reached.
  [rnix, 2011-06-04]

- Adopt tests for form novalidate property.
  [rnix, 2011-05-23]

0.9
---

- Make it work.
  [aatis, rnix]


License
=======

Copyright (c) 2010-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
Copyright (c) 2021-2025, Yafowil Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this
  list of conditions and the following disclaimer in the documentation and/or
  other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
