Formish

Latest version: v0.9.1

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

Scan your dependencies

Page 3 of 7

0.8.1

-----

* Add the ability to emit form fields using field names which will alow
emission of 'slices' of form fields.

0.8f
----

* added 'crop' flag to the fileresource handler that instead of resizing to
bounds, resizes to fill bounds and crops excess.

0.8e
----

BUGFIX: CheckboxMultiChoiceTree wasn't handling empty data
BUGFIX: Form method names should be lower case in templates

0.8d
----

* Remove remains of restish element code

0.8.1c

------

BUGFIX: Enctype wasn't being encoded correctly hence file uploads didn't work

0.8.1b

------

* changed behaviour of enctype so that multi-part is only used if there is a
file upload on the form

0.8.1a

------

BUGFIX: Sequences were using base64 encoding to store new items. This wasn't
handling unicode correctly. Changed to use urlencode
decodeURIComponent. The JQuery base64 library is now not needed.
BUGFIX: Structures were emitting metadata when they are only needed for
sequences

0.8

---

* Added 'readonly' attribute to widget that does not put data on the form.
This allows the creation of forms based on parts of a schema (i.e. mark the
rest of the schema widgets as 'readonly')

* Allow sparse request data (missing request data is now interpreted as the
default value for that widget (see default_value class attribute)

* Refactored the CachedTempFilestores api to only specify the cache tag and
headers.

* CachedTempFilestore now has a FileSystemHeaderedFilestore backend (by
default).

* Improved FileResource store initialisation and handling

- FileResource is now configured using a single filestore or dict of
filestores where the dict keys are the filestore's name. Filestores now
need no name attribute. The filestore with a None key is considered
unnamed, and is the default application filestore.
- The name of the filestore is now encoded in the URL and is used to select
the exact filestore to use.
- FileUpload widget now specifies the exact filestore (unnamed or 'tmp') to
use to display a preview.
- formish.util has some functions to help encode/decode FileResource paths

* Added formish.js and formish.css to the module

* Add min_start_fields, min_empty_start_fields to SequenceDefault widget. This
allows a sequence to always show a spare or only show a spare when no data
entered or to show many spares.

* Added batch_add_count which specifies how many empty fields to add when
'add' is clicked

* Added empty_checker to SequenceDefault so that it can throw away excess
fields left because of min_start_fields (for instance).

* Changed the FileResource initialiser to assume nothing about where the
contents of the cache are stored (defaults could cause a security problem if
file cache and other caches collided). It now needs explicit filestores.
However a quickstart class method has been added that should provide handy
testing fileresources.

* Changed widget from and to request data methods to actively call child
fields methods. Widgets are now soleley in charge of managing the return of
request data/data from themselves and their children.

* Changed to use the new, vastly simplified, dottedish module. The old
dottedish module should no longer be used.

* Charset field can now be disabled. Names on action fields are optional. Form
name is optional (If you omit the name, it won't appear on the form element
or as a prefix for the other html elements).

* A check_form_name keyword argument can be passed to the validate function to
disable form name checking

API CHANGES:

- FileResource and FileUpload filestores now handled differently
- to_request_data, form_request_data and pre_process_incoming_request now take
field instead of attr and explicitly call their child field's methods and
also return data (i.e. Widgets are now soleley in charge of managing the
return of request data/data from themselves and their children).

BUG FIXES:

- bug in CheckBox repr
- added missing error_list block to the form (form level errors were not
shown)
- added styling to ensure all blocks with error class are 900 (dk red)
- generated files now use 0660 as base permissions
- problem with convertor_options.delimiter not being correctly handled
- replaced 'for each' instances with 'for' in formish.js
- SelectChoice selected method failed for complex sub-schemas

0.8c

----

* Added an empty attribute to the form to allow global backup setting for
widget empty value

Page 3 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.