YAFOWIL - YAML/JSON-parser for widget trees.
Write YAFOWIL forms in YAML or JSON notation.
Detailed documentation for describing YAFOWIL forms with YAML can be found here
The sources are in a GIT DVCS with its main branches at github.
We’d be happy to see many forks and pull-requests ;).
Jens W. Klein
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]
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]
Pass yaml.SafeLoader loader to yaml.load to prevent arbitrary code execution. [rnix]
Python 3 compatibility. [rnix]
Convert doctests to unittests. [rnix]
Feature: Support definitions written in JSON too. Since YAML and JSON are 100% comaptible exact the same structure applies. [jensens, 2014-11-13]
Widget definitions in yaml may point to other yaml files for form nesting using nest property. [rnix, 2014-07-18]
Fix test coverage. [rnix, jensens, 2014-04-30]
allow default for i18n messages in format: i18n:message_id:Default Value [rnix, jensens, 2014-02-14]
test coverage, documentation [rnix, jensens]
accidentially set zip_safe=True which is not. Set to Fasle now. [jensens, 2012-03-19]
Adopt test for select blueprint change. [rnix, 2011-12-18]
Fix automatic name setting for recursive compounds. [rnix, 2011-09-30]
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]
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]
Make it work. [aatis, rnix]
Copyright (c) 2010-2021, BlueDynamics Alliance, Austria, Germany, Switzerland Copyright (c) 2021-2022, 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.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for yafowil.yaml-2.0-py3-none-any.whl