-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathCHANGES.txt
181 lines (122 loc) · 5.75 KB
/
CHANGES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
3.0.0 (unreleased)
------------------
- Rename master branch to main.
- Support Python 3.6, 3.7, 3.8, 3.9, and PyPy3.
- Update to Bootstrap 4 and its dependencies. [sydoluciani]
- Use master branch of Deform and Colander on GitHub. [sydoluciani]
- Remove spurious styles definition
https://github.com/Pylons/deform/pull/504 [lelit]
.. _2.0.15:
2.0.15 (2020-12-10)
-------------------
- Add support of Python 3.9.
- Added a new widget ``SelectizeWidget`` based on the jQuery plugin
`selectize.js <https://github.com/selectize/selectize.js>`_. [stevepiercy]
https://github.com/Pylons/deform/issues/260
- Improved handling of the ``readonly`` HTML attribute in certain widgets. The
``readonly`` HTML form control attribute makes the element not mutable,
meaning the user cannot edit the control. When ``"readonly": "readonly"`` is
one of the items in a dict passed into the ``attributes`` option when
creating a widget, the rendered widget both prevents the user from changing
the value, and if the form does not pass validation after submitted then the
field value will be displayed.
``readonly`` is supported by most form controls, but not all. Deform adds
some logic to add read-only support for a few of those form controls, as
described below.
``CheckboxWidget`` and ``CheckboxChoiceWidget``
Due to the nature of how checkbox values are processed, the ``readonly``
attribute has no effect.
To achieve a read-only behavior, pass in ``attributes={"onclick": "return
false;"}``.
This will render as an inline JavaScript ``onclick="return false;"`` for
each checkbox item.
``MoneyInputWidget``
The provided value will be displayed in the input and be not editable.
``RadioChoiceWidget``
For the selected value it will render an attribute in the HTML as
``readonly="readonly"``, and for all other values as
``disabled="disabled"``.
``SelectWidget``
For selection of single options only, the selected value will render an
attribute in the HTML as ``readonly="readonly"``, and for all other values
as ``disabled="disabled"``.
Multiple selections, set by the ``multiple=True`` option, do not support
the ``readonly`` attribute on the ``<select>`` element.
For multiple selections, use the ``SelectizeWidget``.
``SelectizeWidget``
For both single and multiple selections, the selected value or values will
be rendered as selected, and the others will not be selectable.
Selectize uses JavaScript to "lock" the form control.
``TextAreaWidget``
The provided value will be displayed in the input and be not editable.
``TextInputWidget``
The provided value will be displayed in the input and be not editable.
[stevepiercy]
https://github.com/Pylons/deform/issues/260
- Optionally bypass the resource registry and specify a resource as a dict
where its keys are the type of asset (``"js"`` or ``"css"``) and its values
are either a string or a list of strings of paths to assets on disk.
[tdamsma]
https://github.com/Pylons/deform/issues/485
- Conditionally load ``jquery.maskedinput`` if and only if ``mask`` option is
provided. [tisdall, stevepiercy]
https://github.com/Pylons/deform/pull/487
- Changed dateparts widget to use ``type="number"`` instead of default `text`.
https://github.com/Pylons/deform/issues/442
- Switch from using nosetests to pytest as the test runner, as nosetests is no
longer maintained. [stevepiercy]
https://github.com/Pylons/deform/pull/497
https://github.com/Pylons/deform/pull/498
- Add demo and tests for arbitrary HTML5 attributes in widgets.
https://github.com/Pylons/deform/issues/430
- Added unofficial deformdemo. This provides a space for contributors to add
their widgets without requiring tests, especially when the functional tests
cannot pass using Selenium. [sydoluciani]
https://github.com/Pylons/deformdemo/pull/92
- Switch from Travis-CI to GitHub Actions for running tests and builds.
- Add Docker containerization of Deform and deformdemo as an option for running
tests, and improve related documentation.
.. _2.0.14:
2.0.14 (2020-08-26)
-------------------
- Sync version with Deform.
.. _2.0.13:
2.0.13 (2020-08-25)
-------------------
- Sync version with Deform.
.. _2.0.12:
2.0.12 (2020-08-23)
-------------------
- Sync version with Deform.
.. _2.0.11:
2.0.11 (2020-08-21)
-------------------
- Drop support of Python 3.4. Add support of Python 3.8 and PyPy3. Add testing
of Python 3.9-dev with allowed failure. [stevepiercy]
- Fix many broken functional tests. [sydoluciani]
- Use firefox-latest and geckodriver, dropping obsolete Firefox version.
[sydoluciani]
- Use 2.0-branch of Deform on GitHub. [sydoluciani]
- Overhaul README.rst, tox, and requirements to be easier to get started.
[stevepiercy]
- Add examples of using ``tags`` options on ``Select2Widget``. [enkidulan]
https://github.com/Pylons/deformdemo/pull/52
- Added ``sort_dicts`` argument to ``my_safe_repr``. Python 3.8 changed the
call signature of ``pprint._safe_repr``. [jhaiduce]
https://github.com/Pylons/deformdemo/pull/67
- Bump up the thread count from the default 4 to 8 threads. This removes noise
of Waitress's "Task queue depth is 1" warnings in the test output on Travis.
[stevepiercy]
https://github.com/Pylons/deformdemo/pull/62
.. _2.0.7:
2.0.7 (2018-11-20)
------------------
- Use release 2.0.7 of deform.
- Add Docker image as an option to use deformdemo. [ericof]
https://github.com/Pylons/deformdemo/pull/55
- Apply black to the codebase. [ericof]
https://github.com/Pylons/deformdemo/pull/54
- Make iso8601 usage compatible with versions 0.1.11 and 0.1.12. [rbu]
https://github.com/Pylons/deformdemo/pull/51
- Don't skip FileUpload tests on Python 3 anymore. [disko]
https://github.com/Pylons/deformdemo/pull/50