Deform

Latest version: v2.0.15

Safety actively analyzes 681912 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 7

0.9.7

------------------

Bug Fixes
~~~~~~~~~

- Readonly checkbox template had a logic error.

Documentation
~~~~~~~~~~~~~

- Corrected the expected server response when using the Autocomplete widget.

0.9.6

------------------

Bug Fixes
~~~~~~~~~

- Fixed remove bug in nested sequences. See
https://github.com/Pylons/deform/pull/89

- Fixed bug wherein items added to a sequence nor the initial items rendered
in a sequence would not reflect the correct defaults of the item widget.
See https://github.com/Pylons/deform/pull/79

- Fix bug where native datetime/date widget rendering competed with jQuery
datetime/date widget rendering. See
https://github.com/Pylons/deform/pull/142

Dependencies
~~~~~~~~~~~~

- Depend on and use zope.deprecation to deprecate Set class.

- Deform now depends on Colander >= 1.0a1 (previously it depended on >= 0.8).
It requires Colander 1.0a1's newer ``cstruct_children`` and
``appstruct_children`` methods of schema objects as well as being able to
import objects from Colander that don't exist in earlier versions.

- Deform now depends on Chameleon >= 2.5.1 (previously it depended on
>= 1.2.3). It requires the Markup class supplied by this version or better.

- Deform no longer has a setup_requires dependency on setuptools_git
(useless, as the version on PyPI is broken).

- Setup.py now includes all testing requirements in tests_require that are in
testing extras and vice versa.

Features
~~~~~~~~

- Allow SelectWidget to produce <optgroup> HTML tags. See
https://github.com/Pylons/deform/pull/87

- Allow ``deform.form.Form`` constructor to accept an ``autocomplete``
keyword argument, which controls the ``autocomplete`` attribute of the form
tag.

- Add Python 3.3 Trove classifier.

- Pass through unknown keys in a ``filedict`` FileData serialization (FBO of
passing out of band information).

- ``deform.Set`` type deprecated in favor of use of ``colander.Set``.

- Give the preview_url method of the tempstore access to the stored
item. [tomster]

- Add ``style`` attribute/arguments to textinput-related widgets allowing you
to set the style of the tag by hand.

- Allow ``deform.widget.SequenceWidget`` constructor to accept an ``orderable``
keyword argument. Default is ``False``. If ``True``, allow drag-and-drop
reordering of SequenceWidget items (via jQuery UI Sortable).

- The default widget for the colander.Money type is now
deform.widgets.MoneyInputWidget.

- Built-in widgets may have a 'readonly' attribute/constructor-argument, to
indicate that a form field associated with the widget should use its
readonly template instead of its normal readwrite template. A ``readonly``
keyword argument can still be passed to ``Field.serialize`` to render a
field as readonly, like in older versions.

- ``deform.field.Field`` now has a ``__contains__`` method, which returns
``True`` if the named field is a subfield of the field on which it is
called.

- ``deform.field.Field`` now has a ``validate_pstruct`` method which works
like ``validate`` except it accepts a pstruct directly instead of accepting
a list of controls.

- ``deform.field.Field.validate`` now accepts a ``subcontrol`` argument for
validating a submapping of a form.

- In support of "retail" form rendering, the ``serialize`` method of widgets
now accepts arbitrary keyword arguments. These are used as top-level value
overrides to widget templates.

- In support of "retail" form rendering, the ``serialize`` method of a Field
now accepts arbitrary keyword arguments. These are passed along to it's
widget's ``serialize`` method.

- It is now possible to pass an ``appstruct`` argument to the
``deform.Field`` (and by extension, the ``deform.Form``) constructor. When
you do so, you can omit passing an ``appstruct`` argument to the ``render``
method of the field/form. Fields set a cstruct value recursively when
supplied with an ``appstruct`` argument to their constructor. This is in
support of "retail" form rendering.

- Form/field objects are now initialized with a cstruct (recursively) when
created. This means that accessing form.cstruct will return the current
set of rendering values. This value is reset during validation, so after a
validation is done you can re-render the form to show validation errors.
This is in support of "retail" form rendering.

- Form/field objects now have peppercorn-field-outputting methods:
``start_mapping``, ``end_mapping``, ``start_sequence``, ``end_sequence``,
``start_rename``, ``end_rename`` in support of retail form rendering.

- The ``deform.Field`` (and therefore ``deform.Form``) classes now expose a
``render_template`` method, which injects ``field`` and ``cstruct`` into
the dictionary passed to the template if they don't already exist in the
``**kw`` passed. This is in support of retail form rendering.

- Add ``set_appstruct`` and ``set_pstruct`` methods to Field; these accept,
respectively, an appstruct or a pstruct and set the cstruct related to the
field to the deserialized or serialized value.

Documentation
~~~~~~~~~~~~~

- Add a (weak) "Retail Form Rendering" chapter to the docs.

0.9.5

------------------

- Add translations for TinyMCE. Thanks OCHIAI, Gouji.

- Japanese translation thanks to OCHIAI, Gouji.

- Modified Russian translation thanks to aleksandr.rakov

- Date(Time)Widget supports now options to configure it, thx to gaston
tjebbes, kiorky

- FileUploadWidget now sanitizes IE/Windows whole-path filenames before
passing them back to the caller during deserialization/validation.

- Add docs and dev setup.py aliases ala Pyramid.

- Add MoneyInputWidget widget type.

- Allow a custom i18n domain to be used for the "Add ${subitem_title}"
link of a SequenceWidget. See
https://github.com/Pylons/deform/issues/85 .

- Allow the use of Integer values with SelectWidget. See
https://github.com/Pylons/deform/issues/81 .

- CheckedInputWidget and CheckedPasswordWidget now populate the "confirm"
element with the cstruct value (for edit forms).

- Update to JQuery 1.7.2.

- Update to jquery.form 3.09.

0.9.4

------------------

- No longer Python 2.5 compatible. Python 2.6+ is required.

- Python 3.2 compatible.

- Translate title attribute for remove button in sequence fields.

- Do not output empty error messages for sequence items. After translation
these would insert the PO file metadata.

- Update to lingua for translations, add french translation

- fix multiple i18n issues.

- Fix a bug where displaying error could lead on an error when you have
imbricated Mapping objects

- Fix issue 54: form.pt does not show validation errors from the top node of
the schema. See https://github.com/Pylons/deform/issues/54 for more
information.

- Previously, all CheckedInputWidget and CheckedPasswordWidget fields had
hardcoded input[name] attributes of 'value' and 'confirm'. When
deserializing a form, this caused colander.null to be passed to the widget
deserialization function since neither submitted value matched the name of
the field. This change simply replaces 'value' with the name of the field
and 'confirm' with the name of the field with '-confirm' appended.

- In select widget, add css_class to <select> rather than only <option>.

- Allow RichText fields to load their editor only after clicking on them

- There is no longer a ``deform_ajaxify`` global javascript function.
Instead forms are AJAXified directly by the javascript callback for the
form.

0.9.3

------------------

- Update Dutch translations.

- Translate title and description of items for sequence fields.

- Add a new API method to field objects: ``translate``. This method will use
the translator passed to the underlying renderer to translate message ids
into text.

0.9.2

------------------

- Chameleon 2 compatibility.

- Use default widgets for a schema's baseclass if known instead of always
falling back to a text widget.


- Deform now includes a ``beautify.css`` (contributed by Ergo^) in its static
directory, which can be used to make form element styling prettier.

- Moved ``deformdemo`` into its own package and Github repository
(https://github.com/Pylons/deformdemo).

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.