Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

384 lines (266 sloc) 11.661 kb
* Added an example in the testish block for the restish embedded example
BUGFIX: contains_error was reporting errors at the self level. Should only
report if child fields had errors
BUGFIX: Sequences represented as textareas were not showing contained errors
(although they were failing validation). Fields and Collections
now have 'contains_error' and 'contained_errors' properties.
* Added the ability to pass vars into templates.
The only templates that currently use this are the Input and Textarea
widgets. f.widget(classes='myclass yourclass') will add this class
attribute to the input/textarea element
BUGFIX: Many javascript changes to simplify sequence handling and to ensure
sequences work when using custom templates and also when multiple
forms are on a page.
BUGFIX: When using custom templates, the generated 'blob' of data that
represents the 'new item' template was not working correctly. This
should not have affected normal uses of formish
* Rewritten formish javascript for sequences to use class name hooks instead
of relative paths. Add SequenceOfSequence support
BUGFIX: Sequence of Sequence javascript manipulation did not work correctly at all.
BUGFIX: Enctype wasn't being encoded correctly hence file uploads didn't work
* changed behaviour of enctype so that multi-part is only used if there is a
file upload on the form
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
* Add the ability to emit form fields using field names which will alow
emission of 'slices' of form fields.
* added 'crop' flag to the fileresource handler that instead of resizing to
bounds, resizes to fill bounds and crops excess.
BUGFIX: CheckboxMultiChoiceTree wasn't handling empty data
BUGFIX: Form method names should be lower case in templates
* Remove remains of restish element code
* Added an empty attribute to the form to allow global backup setting for
widget empty value
BUGFIX: The request_data was not being set on the form as a dotted_dict post
0.8, hence deep sequences were not working correctly
* 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
* CachedTempFilestore now has a FileSystemHeaderedFilestore backend (by
* 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
- 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 in CheckBox repr
- added missing error_list block to the form (form level errors were not
- 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
* Action init argument changes and add_action argument changes. Also, a
default form now has an action in form.actions
A form now has a 'add_default_action' keyword argument that defaults to True.
Action init now takes (name, value=None, callback=None).
The default action on a form has a value of 'Submit' and a name of 'submit'.
You can manage the list of actions explicitly. A value of None removes the
value html attribute.
Relase didn't include any template files (caused by missing gitlsfiles when
BUG FIX: Fixed problem with checkbox multi choice tree widget not applying
css_class correctly and not nesting html ul/li's correctly
BUG FIX: Nested structures were using the sequence template
BUG FIX: Fixed one last remaining use of widget.convert in CheckboxMultiChoiceTree
BUG FIX: Missed replacing a reference to _template in formish.validation
* Input widgets can be used for sequence data (csv input field)
* Added support for GET forms
* Included css template in main formish module
* Made success/failure form callback more flexible and intuitive
* Reviewed use of css class and id names and added prefixes to field, widget
and type to prevent clashes
* Added ability to apply a default value to a single form element
* Updated testish example/test app to use new restish templating
* Better reprs for widgets and form definitions
* Documentation improvements
- Started adding doctests to documentation
- Reduced the weight of the documentation (simplify styling/templates)
* Lots of changes to the way file uploads are handled - will document before a
tagged release
- Using a 'headered' filestore that allows meta information to be stored
with the file
- this means cached files are not browseable on the filesystem anymore
- fixed bugs in thumbnail preview
- lots more tests around cacheing and file store
BUG FIX: There were some errors in the previous file upload system but the
replacement of the file upload system has improved the whole file
upload system
0.6.6 (2009-01-29)
* Added the errors property to allow a user to get hold of the full list of
errors (including the original validator settings)
0.6.5 (2009-01-23)
BUG FIX: convert error if a choice type is given bad request data.
0.6.4a (2009-01-22)
* Added object base class to enable 2.4 comptibility
BUG FIX: made sure the 'empty' attribute worked symettrically (goes with
removing empty string checking from convertish)
BUG FIX: none_option default was empty string which broke when using datetype.
BUG FIX: sequences could not be used as values in select choice
0.6.3 (2009-01-19)
BUG FIX: Success and Failure callbacks didn't work
0.6.2 (2009-01-19)
* Added testish tests for default values using radio choice and check box as
BUG FIX: Radio choice type conversion was broken
0.6.1 (2009-01-17)
* Added the 'empty' attribute to allow empty values to come back as anything
you like (normally they return None)
* Reviewed the way conversion works and added extra tests.. picked up on a
couple of edge cases
BUG FIX: bugs in the conversion of none_option values
0.6 (2009-01-16)
Hopefully we're over the backward incompatible api changes.
* added ``sortable`` option to sequence widget
* renamed the default form id back to 'form' (it temporarily got set as
'formish'). js and css might need changing in your projects..
* Added ReCAPTCHA widget and enhanced the testish self documenting site
* big introduction page to docs
0.5.9 (2009-01-13)
* added a TextArea csv example and cleaned up fileresource handlers
BUG FIX: resizing when only with or height given was not working
0.5.8 (2009-01-12)
* added a SelectWithOther choice and enhanced unit and func test capabilities
in testish
0.5.7 (2009-01-11)
BUG FIX: Fixed various problems with File uploads.
* added a default file acccessor that uses python tempfile with a 'store-' file
0.5.6 (2009-01-09)
BUG FIX: Fixed bug when using multi part widgets (e.g. Date Parts) inside a
sequence. Added example test case.
* changes to handle new schemaish Invalid exception format
* added a contains-error class to container classes that do.
0.5.5 (2009-01-08)
* Add a granular template rendering system (have a look at
0.5.4 (2009-01-06)
* Removed all * imports apart from those at the module level. Checked against
0.5.3 (2009-01-06)
* dateFirst becomes date_first (on dateParts widget)
* allowClear becomes allow_clear (on fileUpload widget)
* fileHandler becomes filehandler (on fileUpload widget)
* showImagePreview becomes show_image_preview (on fileUpload widget)
* noneOption becomes none_option (on select widgets)
Cleaned up repo and fixed bad style in some method attributes and method names
* Added files recommended by pypi including license
0.5.2 (2009-01-05)
BUG FIX: Added an import except wrapper around the default mako import
0.5.1 (2009-01-05)
BUG FIX: Problem with redisplayed empty checkboxes after validation
0.5 (2009-01-05)
NOTE: First External Release
Jump to Line
Something went wrong with that request. Please try again.