Skip to content
Newer
Older
100644 153 lines (110 sloc) 5.15 KB
75eebe3 @mcdonc Add in-progress formgen package.
mcdonc authored
1 Changes
2 =======
3
3cae0fb @mcdonc prep for 0.5
mcdonc authored
4 0.5 (2010-08-25)
5 ----------------
81b99b2 @mcdonc - Add the ``deform.Field.set_widgets`` method, which allows a
mcdonc authored
6
7 Features
8 ~~~~~~~~
9
c3a1f46 @mcdonc - Added features which make it possible to inquire about which
mcdonc authored
10 - Added features which make it possible to inquire about which
11 resources (JavaScript and CSS resources) are required by all the
12 widgets that make up a form rendering. Also make it possible for a
13 newly created widget to specify its requirements. See "Widget
14 Requirements and Resources" in the widgets chapter of the
15 documentation.
16
17 - Add the ``get_widget_requirements`` method to ``deform.Field``
18 objects.
19
20 - Add the ``get_widget_resources`` method to ``deform.Field``
21 objects.
22
23 - Allow ``deform.Field`` (and ``deform.Form``) objects to accept a
24 "resource registry" as a constructor argument.
25
81b99b2 @mcdonc - Add the ``deform.Field.set_widgets`` method, which allows a
mcdonc authored
26 - Add the ``deform.Field.set_widgets`` method, which allows a
27 (potentially nested) set of widgets to be applied to children fields
d724d43 @mcdonc use a dotted name implementation instead of a nested dictionary
mcdonc authored
28 of the field upon which it is called.
81b99b2 @mcdonc - Add the ``deform.Field.set_widgets`` method, which allows a
mcdonc authored
29
24037ac @mcdonc - Add the ``deform.widget.TextInputCSV`` widget. This widget is
mcdonc authored
30 - Add the ``deform.widget.TextInputCSV`` widget. This widget is
31 exactly like the ``deform.widget.TextAreaCSV`` widget except it
32 accepts a single line of input only.
33
34 - The default widget for ``colander.Tuple`` schema types is now
35 ``deform.widget.TextInputCSV``.
36
bb5a4cd @mcdonc - The ``deform.widget.FileUploadWidget`` now returns an instance of
mcdonc authored
37 - The ``deform.widget.FileUploadWidget`` now returns an instance of
38 ``deform.widget.filedict`` instead of a plain dictionary to make it
39 possible (using isinstance) to tell the difference between file
40 upload data and a plain data dictionary for highly generalized
41 persistence code.
42
5963afd @mcdonc prep for 0.4
mcdonc authored
43 0.4 (2010-08-22)
44 ----------------
84cdcfc @mcdonc - When the hidden widget is used to deserialize a field, return
mcdonc authored
45
46 Bug Fixes
47 ~~~~~~~~~
48
49 - When the hidden widget is used to deserialize a field, return
50 ``colander.null`` rather than the empty string so that it may be
51 used to represent non-text fields such as ``colander.Integer``.
52 This is isomorphic to the change done previously to
53 ``deform.TextInputWidget`` to support nontextual empty fields.
54
ae99edf @mcdonc - Fix typo about overriding templates using set_zpt_renderer in
mcdonc authored
55 - Fix typo about overriding templates using set_zpt_renderer in
56 templating chapter.
57
93dab7f @mcdonc - Fix link to imperative schema within in Colander docs within "Basics".
mcdonc authored
58 - Fix link to imperative schema within in Colander docs within "Basics".
59
e288b25 @reedobrien Add docs and update CHANGES.txt for richtext wdgt deform.widget.RichT…
reedobrien authored
60 - Remove duplicate ``deform.widget.DateInputWidget`` class definition.
61
62 Features
63 ~~~~~~~~
64
65 - Add a ``deform.widget.RichTextWidget`` widget, which adds the
66 TinyMCE WYSIWIG javascript editor to a text area.
67
672b7cb @reedobrien Add the Autocomplete widget to CHANGES.txt
reedobrien authored
68 - Add a ``deform.widget.AutocompleteInputWidget`` widget, which adds
69 a text input that can be supplied a URL or iterable of choices to
70 ease the search and selection of a finite set of choices.
71
7c351db @mcdonc Merge Blaise's css_class patches from https://bitbucket.org/blaf/deform:
mcdonc authored
72 - The ``deform.widget.Widget`` class now accepts an extra keyword
73 argument in its constructor: ``css_class``.
74
5963afd @mcdonc prep for 0.4
mcdonc authored
75 - All widgets now inherit a ``css_class`` attribute from the base
7c351db @mcdonc Merge Blaise's css_class patches from https://bitbucket.org/blaf/deform:
mcdonc authored
76 ``deform.widget.Widget`` class. If `css_class`` contains a value,
5963afd @mcdonc prep for 0.4
mcdonc authored
77 the "primary" element in the rendered widget will get a CSS
78 ``class`` attribute equal to the value ("primary" is defined by the
79 widget template's implementor).
e288b25 @reedobrien Add docs and update CHANGES.txt for richtext wdgt deform.widget.RichT…
reedobrien authored
80
f474fcb @mcdonc - The ``deform.Field`` class now as an ``__iter__`` method which
mcdonc authored
81 - The ``deform.Field`` class now as an ``__iter__`` method which
82 iterates over the children fields of the field upon which it is
83 called (``for item in field`` == ``for item in field.children``).
84
25db975 @mcdonc prep for 0.3
mcdonc authored
85 0.3
86 ---
87
88 Bug Fixes
89 ~~~~~~~~~
90
91 - Change default form action to the empty string (rather than ``.``).
92 Thanks to Kiran.
93
94 Features
95 ~~~~~~~~
113050f @mcdonc - Add text input mask capability to ``deform.widget.TextInputWidget``.
mcdonc authored
96
1c308e1 @mcdonc - Add ``deform.widget.DateInputWidget`` widget, which is a date picker
mcdonc authored
97 - Add ``deform.widget.DateInputWidget`` widget, which is a date picker
98 widget. This has now become the default widget for the
99 ``colander.Date`` schema type, preferred to the date parts widget.
100
113050f @mcdonc - Add text input mask capability to ``deform.widget.TextInputWidget``.
mcdonc authored
101 - Add text input mask capability to ``deform.widget.TextInputWidget``.
102
73a87fc @mcdonc - Add text input mask capability to
mcdonc authored
103 - Add text input mask capability to
104 ``deform.widget.CheckedInputWidget``.
105
25db975 @mcdonc prep for 0.3
mcdonc authored
106 Backwards Incompatibilities
107 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
d803bc3 @mcdonc - Change default form action to the empty string (rather than ``.``).
mcdonc authored
108
0749984 @mcdonc reverse the meaning of default and null
mcdonc authored
109 - Custom widgets must now check for ``colander.null`` rather than
110 ``None`` as the null sentinel value.
111
25db975 @mcdonc prep for 0.3
mcdonc authored
112 - Dependency on a new (0.7) version of Colander, which has been
113 changed to make using proper defaults possible; if you've used the
114 ``default`` argument to a ``colander.SchemaNode``, or if you've
115 defined a custom Colander type, you'll want to read `the updated
116 Colander documentation <http://docs.repoze.org/colander>`_
117 (particularly the changelist). Short story: use the ``missing``
118 argument instead.
119
120 - If you've created a custom widget, you will need to tweak it
121 slightly to handle the value ``colander.null`` as input to both
122 ``serialize`` and ``deserialize``. See the Deform docs at
123 `http://docs.repoze.org/deform <http://docs.repoze.org/deform>`_ for
124 more information.
0749984 @mcdonc reverse the meaning of default and null
mcdonc authored
125
c7ea420 @mcdonc Prep for 0.2
mcdonc authored
126 0.2 (2010-05-13)
127 ----------------
ecc144e @mcdonc - Every form has a formid now, defaulting to ``deform``. The formid
mcdonc authored
128
129 - Every form has a formid now, defaulting to ``deform``. The formid
130 is used to compute the id of the form tag as well as the button ids
131 in the form. Previously, if a formid was not passed to the Form
132 constructor, no id would be given to the rendered form and the
a63045d @mcdonc - The ``deform.Form`` class now accepts two extra keyword arguments in
mcdonc authored
133 form's buttons would not be prefixed with any formid.
134
135 - The ``deform.Form`` class now accepts two extra keyword arguments in
136 its constructor: ``use_ajax`` and ``ajax_options``.
137
138 If ``use_ajax`` is ``True``, the page is not reloaded when a submit
139 button is pressed. Instead, the form is posted, and the result
140 replaces the DOM node on the page.
141
142 ``ajax_options`` is a string which allows you to pass extra options
143 to the underlying AJAX form machinery when ``use_ajax`` is True.
144
145 - Added a couple Ajax examples to the demo app.
146
147 - Add a rudimentary Ajax chapter to the docs.
ecc144e @mcdonc - Every form has a formid now, defaulting to ``deform``. The formid
mcdonc authored
148
289a6e1 @mcdonc Prep for 0.1.
mcdonc authored
149 0.1 (2010-05-09)
75eebe3 @mcdonc Add in-progress formgen package.
mcdonc authored
150 ----------------
151
152 - Initial release.
Something went wrong with that request. Please try again.