Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 246 lines (193 sloc) 11.745 kB
4b818c6 @mcdonc move 1.5 stuff to HISTORY.txt and label 1.6 in changes
mcdonc authored
1 1.6 (2015-04-14)
2 ================
c61755f @mcdonc vb master to 1.6dev
mcdonc authored
3
9177d01 @chrisrossi Update change log.
chrisrossi authored
4 Features
5 --------
6
f827882 added appropriate contributors and changes entries
Igor Stroh authored
7 - pcreate will now ask for confirmation if invoked with
8 an argument for a project name that already exists or
9 is importable in the current environment.
10 See https://github.com/Pylons/pyramid/issues/1357 and
11 https://github.com/Pylons/pyramid/pull/1837
12
200c9eb @mcdonc add change note related to #1529
mcdonc authored
13 - Make it possible to subclass ``pyramid.request.Request`` and also use
14 ``pyramid.request.Request.add_request.method``. See
15 https://github.com/Pylons/pyramid/issues/1529
16
d35a916 @mmerickel update changelog
mmerickel authored
17 - The ``pyramid.config.Configurator`` has grown the ability to allow
18 actions to call other actions during a commit-cycle. This enables much more
19 logic to be placed into actions, such as the ability to invoke other actions
568a025 @mmerickel expose public config phases in pyramid.config
mmerickel authored
20 or group them for improved conflict detection. We have also exposed and
21 documented the config phases that Pyramid uses in order to further assist
22 in building conforming addons.
d35a916 @mmerickel update changelog
mmerickel authored
23 See https://github.com/Pylons/pyramid/pull/1513
24
46bc7fd @mmerickel update changelog for #1581
mmerickel authored
25 - Add ``pyramid.request.apply_request_extensions`` function which can be
26 used in testing to apply any request extensions configured via
27 ``config.add_request_method``. Previously it was only possible to test
28 the extensions by going through Pyramid's router.
29 See https://github.com/Pylons/pyramid/pull/1581
9177d01 @chrisrossi Update change log.
chrisrossi authored
30
c9cb19b @bertjwregeer Add changelog entry
bertjwregeer authored
31 - pcreate when run without a scaffold argument will now print information on
32 the missing flag, as well as a list of available scaffolds.
33 See https://github.com/Pylons/pyramid/pull/1566 and
34 https://github.com/Pylons/pyramid/issues/1297
35
bc8e4d2 @tseaver Add support for testing 'pypy3' under Tox / Travis.
tseaver authored
36 - Added support / testing for 'pypy3' under Tox and Travis.
782eb47 @mmerickel update changelog for #1469
mmerickel authored
37 See https://github.com/Pylons/pyramid/pull/1469
bc8e4d2 @tseaver Add support for testing 'pypy3' under Tox / Travis.
tseaver authored
38
149d363 @mmerickel update changelog
mmerickel authored
39 - Automate code coverage metrics across py2 and py3 instead of just py2.
40 See https://github.com/Pylons/pyramid/pull/1471
41
9177d01 @chrisrossi Update change log.
chrisrossi authored
42 - Cache busting for static resources has been added and is available via a new
15b9794 @chrisrossi cachebuster -> cachebust
chrisrossi authored
43 argument to ``pyramid.config.Configurator.add_static_view``: ``cachebust``.
5fdf9a5 @mmerickel update changelog
mmerickel authored
44 Core APIs are shipped for both cache busting via query strings and
45 path segments and may be extended to fit into custom asset pipelines.
46 See https://github.com/Pylons/pyramid/pull/1380 and
47 https://github.com/Pylons/pyramid/pull/1583
9177d01 @chrisrossi Update change log.
chrisrossi authored
48
ae6c883 @mmerickel add config.root_package attribute
mmerickel authored
49 - Add ``pyramid.config.Configurator.root_package`` attribute and init
50 parameter to assist with includeable packages that wish to resolve
51 resources relative to the package in which the ``Configurator`` was created.
73b1622 @mmerickel moar changelogs!
mmerickel authored
52 This is especially useful for addons that need to load asset specs from
c617b7d @mmerickel update changelog for fixes from #1453
mmerickel authored
53 settings, in which case it is may be natural for a developer to define
54 imports or assets relative to the top-level package.
ae6c883 @mmerickel add config.root_package attribute
mmerickel authored
55 See https://github.com/Pylons/pyramid/pull/1337
56
ba54445 @mmerickel update changelog
mmerickel authored
57 - Added line numbers to the log formatters in the scaffolds to assist with
58 debugging. See https://github.com/Pylons/pyramid/pull/1326
59
7dd3902 @mmerickel update changelog with new http exceptions from #1372
mmerickel authored
60 - Add new HTTP exception objects for status codes
61 ``428 Precondition Required``, ``429 Too Many Requests`` and
62 ``431 Request Header Fields Too Large`` in ``pyramid.httpexceptions``.
63 See https://github.com/Pylons/pyramid/pull/1372/files
64
f3a5679 @mmerickel enable PYTHONSTARTUP support in pshell
mmerickel authored
65 - The ``pshell`` script will now load a ``PYTHONSTARTUP`` file if one is
66 defined in the environment prior to launching the interpreter.
823ac44 @mmerickel adjust tests to work even when someone has defined PYTHONSTARTUP in t…
mmerickel authored
67 See https://github.com/Pylons/pyramid/pull/1448
f3a5679 @mmerickel enable PYTHONSTARTUP support in pshell
mmerickel authored
68
7b1d422 @mmerickel update changelog
mmerickel authored
69 - Make it simple to define notfound and forbidden views that wish to use
70 the default exception-response view but with altered predicates and other
71 configuration options. The ``view`` argument is now optional in
72 ``config.add_notfound_view`` and ``config.add_forbidden_view``..
73 See https://github.com/Pylons/pyramid/issues/494
74
c617b7d @mmerickel update changelog for fixes from #1453
mmerickel authored
75 - Greatly improve the readability of the ``pcreate`` shell script output.
76 See https://github.com/Pylons/pyramid/pull/1453
77
716a20f @mmerickel use hmac.compare_digest if available
mmerickel authored
78 - Improve robustness to timing attacks in the ``AuthTktCookieHelper`` and
79 the ``SignedCookieSessionFactory`` classes by using the stdlib's
80 ``hmac.compare_digest`` if it is available (such as Python 2.7.7+ and 3.3+).
81 See https://github.com/Pylons/pyramid/pull/1457
9177d01 @chrisrossi Update change log.
chrisrossi authored
82
407b335 @mmerickel add support for using an absolute path to override an asset
mmerickel authored
83 - Assets can now be overidden by an absolute path on the filesystem when using
8d53529 @mmerickel attempt to clarify the benefit of these changes
mmerickel authored
84 the ``config.override_asset`` API. This makes it possible to fully support
85 serving up static content from a mutable directory while still being able
86 to use the ``request.static_url`` API and ``config.add_static_view``.
87 Previously it was not possible to use ``config.add_static_view`` with an
88 absolute path **and** generate urls to the content. This change replaces
89 the call, ``config.add_static_view('/abs/path', 'static')``, with
90 ``config.add_static_view('myapp:static', 'static')`` and
91 ``config.override_asset(to_override='myapp:static/',
92 override_with='/abs/path/')``. The ``myapp:static`` asset spec is completely
93 made up and does not need to exist - it is used for generating urls
94 via ``request.static_url('myapp:static/foo.png')``.
650d3d5 @mmerickel reference appropriate PR
mmerickel authored
95 See https://github.com/Pylons/pyramid/issues/1252
407b335 @mmerickel add support for using an absolute path to override an asset
mmerickel authored
96
a624626 @sontek Added CHANGES entry for this PR
sontek authored
97 - Added ``pyramid.config.Configurator.set_response_factory`` and the
98 ``response_factory`` keyword argument to the ``Configurator`` for defining
99 a factory that will return a custom ``Response`` class.
100 See https://github.com/Pylons/pyramid/pull/1499
101
2d659e4 @mmerickel update changes for #1417
mmerickel authored
102 - Allow an iterator to be returned from a renderer. Previously it was only
103 possible to return bytes or unicode.
104 See https://github.com/Pylons/pyramid/pull/1417
105
8dd9708 @msabramo Give pserve the ability top open server in browser
msabramo authored
106 - ``pserve`` can now take a ``-b`` or ``--browser`` option to open the server
107 URL in a web browser. See https://github.com/Pylons/pyramid/pull/1533
108
3f8ac54 @sontek Fix typo
sontek authored
109 - Overall improvments for the ``proutes`` command. Added ``--format`` and
149ea94 @sontek Updated the CHANGES to discuss these improvments.
sontek authored
110 ``--glob`` arguments to the command, introduced the ``method``
111 column for displaying available request methods, and improved the ``view``
112 output by showing the module instead of just ``__repr__``.
113 See https://github.com/Pylons/pyramid/pull/1488
114
86f4d59 @mmerickel update changelog
mmerickel authored
115 - Support keyword-only arguments and function annotations in views in
116 Python 3. See https://github.com/Pylons/pyramid/pull/1556
117
d23e698 @mmerickel update changelog and docs
mmerickel authored
118 - ``request.response`` will no longer be mutated when using the
0420684 @mmerickel update changelog
mmerickel authored
119 ``pyramid.renderers.render_to_response()`` API. It is now necessary to
120 pass in a ``response=`` argument to ``render_to_response`` if you wish to
121 supply the renderer with a custom response object for it to use. If you
122 do not pass one then a response object will be created using the
123 application's ``IResponseFactory``. Almost all renderers
d23e698 @mmerickel update changelog and docs
mmerickel authored
124 mutate the ``request.response`` response object (for example, the JSON
125 renderer sets ``request.response.content_type`` to ``application/json``).
126 However, when invoking ``render_to_response`` it is not expected that the
127 response object being returned would be the same one used later in the
128 request. The response object returned from ``render_to_response`` is now
129 explicitly different from ``request.response``. This does not change the
0420684 @mmerickel update changelog
mmerickel authored
130 API of a renderer. See https://github.com/Pylons/pyramid/pull/1563
d23e698 @mmerickel update changelog and docs
mmerickel authored
131
a7d77fd @mcdonc be more specific about the append_slash feature addition
mcdonc authored
132 - The ``append_slash`` argument of ```Configurator().add_notfound_view()`` will
133 now accept anything that implements the ``IResponse`` interface and will use
134 that as the response class instead of the default ``HTTPFound``. See
135 https://github.com/Pylons/pyramid/pull/1610
12b6f58 @dstufft Allow passing a custom redirect class for appending slashes
dstufft authored
136
7423971 @mcdonc fix merge conflicts
mcdonc authored
137 Bug Fixes
138 ---------
139
c45d6ae @davisagli Add workaround to make sure echo is enabled after reload (refs #689)
davisagli authored
140 - Work around an issue where ``pserve --reload`` would leave terminal echo
141 disabled if it reloaded during a pdb session.
1bcc347 @davisagli update changelog
davisagli authored
142 See https://github.com/Pylons/pyramid/pull/1577,
143 https://github.com/Pylons/pyramid/pull/1592
c45d6ae @davisagli Add workaround to make sure echo is enabled after reload (refs #689)
davisagli authored
144
7423971 @mcdonc fix merge conflicts
mcdonc authored
145 - ``pyramid.wsgi.wsgiapp`` and ``pyramid.wsgi.wsgiapp2`` now raise
146 ``ValueError`` when accidentally passed ``None``.
ab2a772 @mmerickel reference more pull requests in the change log
mmerickel authored
147 See https://github.com/Pylons/pyramid/pull/1320
889bdc8 @goodwillcoding update change me with the scaffold changes
goodwillcoding authored
148
8e90d62 @bertjwregeer Add information to CHANGES
bertjwregeer authored
149 - Fix an issue whereby predicates would be resolved as maybe_dotted in the
150 introspectable but not when passed for registration. This would mean that
ab2a772 @mmerickel reference more pull requests in the change log
mmerickel authored
151 ``add_route_predicate`` for example can not take a string and turn it into
152 the actual callable function.
153 See https://github.com/Pylons/pyramid/pull/1306
09beb29 @mmerickel remove redundant tests
mmerickel authored
154
d24055e @mmerickel modify p.testing.setUp() to configure the package relative to caller
mmerickel authored
155 - Fix ``pyramid.testing.setUp`` to return a ``Configurator`` with a proper
156 package. Previously it was not possible to do package-relative includes
157 using the returned ``Configurator`` during testing. There is now a
158 ``package`` argument that can override this behavior as well.
ab2a772 @mmerickel reference more pull requests in the change log
mmerickel authored
159 See https://github.com/Pylons/pyramid/pull/1322
d24055e @mmerickel modify p.testing.setUp() to configure the package relative to caller
mmerickel authored
160
dc9c386 @mmerickel update changelog
mmerickel authored
161 - Fix an issue where a ``pyramid.response.FileResponse`` may apply a charset
162 where it does not belong. See https://github.com/Pylons/pyramid/pull/1251
163
3260215 @mcdonc - Work around a bug introduced in Python 2.7.7 on Windows where
mcdonc authored
164 - Work around a bug introduced in Python 2.7.7 on Windows where
165 ``mimetypes.guess_type`` returns Unicode rather than str for the content
166 type, unlike any previous version of Python. See
167 https://github.com/Pylons/pyramid/issues/1360 for more information.
a0e97ba @tseaver Changelog for PR #1245.
tseaver authored
168
18566a2 @mmerickel update changelog from #1376
mmerickel authored
169 - ``pcreate`` now normalizes the package name by converting hyphens to
170 underscores. See https://github.com/Pylons/pyramid/pull/1376
171
909486a @mmerickel update changelog for #1373
mmerickel authored
172 - Fix an issue with the final response/finished callback being unable to
173 add another callback to the list. See
174 https://github.com/Pylons/pyramid/pull/1373
175
46a268b @mmerickel update changelog
mmerickel authored
176 - Fix a failing unittest caused by differing mimetypes across various OSs.
177 See https://github.com/Pylons/pyramid/issues/1405
178
e7745ac @tilgovi Fix static views with package root spec patterns
tilgovi authored
179 - Fix route generation for static view asset specifications having no path.
180 See https://github.com/Pylons/pyramid/pull/1377
181
1ef35b7 @mmerickel update changelog
mmerickel authored
182 - Allow the ``pyramid.renderers.JSONP`` renderer to work even if there is no
183 valid request object. In this case it will not wrap the object in a
750b783 @mmerickel fix typo on changes.rst
mmerickel authored
184 callback and thus behave just like the ``pyramid.renderers.JSON`` renderer.
1ef35b7 @mmerickel update changelog
mmerickel authored
185 See https://github.com/Pylons/pyramid/pull/1561
186
e30c3b9 @dairiki Prevent DeprecationWarning from setuptools>=11.3
dairiki authored
187 - Prevent "parameters to load are deprecated" ``DeprecationWarning``
3279854 @mmerickel update changelog for #1541
mmerickel authored
188 from setuptools>=11.3. See https://github.com/Pylons/pyramid/pull/1541
e30c3b9 @dairiki Prevent DeprecationWarning from setuptools>=11.3
dairiki authored
189
06bb4a4 @mmerickel update changelog
mmerickel authored
190 - Avoiding sharing the ``IRenderer`` objects across threads when attached to
191 a view using the `renderer=` argument. These renderers were instantiated
192 at time of first render and shared between requests, causing potentially
193 subtle effects like `pyramid.reload_templates = true` failing to work
194 in `pyramid_mako`. See https://github.com/Pylons/pyramid/pull/1575
195 and https://github.com/Pylons/pyramid/issues/1268
196
b4e9902 @mmerickel update changelog for #1574
mmerickel authored
197 - Avoiding timing attacks against CSRF tokens.
198 See https://github.com/Pylons/pyramid/pull/1574
199
37f3ed0 @mmerickel default response_callback and finished_callback to an empty deque ins…
mmerickel authored
200 - ``request.finished_callbacks`` and ``request.response_callbacks`` now
201 default to an iterable instead of ``None``. It may be checked for a length
202 of 0. This was the behavior in 1.5.
203
3ffd40c @mmerickel update changelog
mmerickel authored
204 Deprecations
205 ------------
206
207 - Renamed the ``principal`` argument to ``pyramid.security.remember()`` to
208 ``userid`` in order to clarify its intended purpose.
209 See https://github.com/Pylons/pyramid/pull/1399
210
7a6bf6f @mcdonc modify changes wrt logging config stripping
mcdonc authored
211 Docs
212 ----
213
63366c3 @bertjwregeer Update CHANGES
bertjwregeer authored
214 - Moved the documentation for ``accept`` on ``Configurator.add_view`` to no
c015da7 @bertjwregeer Fix typo
bertjwregeer authored
215 longer be part of the predicate list. See
63366c3 @bertjwregeer Update CHANGES
bertjwregeer authored
216 https://github.com/Pylons/pyramid/issues/1391 for a bug report stating
217 ``not_`` was failing on ``accept``. Discussion with @mcdonc led to the
218 conclusion that it should not be documented as a predicate.
f176630 @bertjwregeer Add link to PR
bertjwregeer authored
219 See https://github.com/Pylons/pyramid/pull/1487 for this PR
63366c3 @bertjwregeer Update CHANGES
bertjwregeer authored
220
7a6bf6f @mcdonc modify changes wrt logging config stripping
mcdonc authored
221 - Removed logging configuration from Quick Tutorial ini files except for
222 scaffolding- and logging-related chapters to avoid needing to explain it too
223 early.
c61755f @mcdonc vb master to 1.6dev
mcdonc authored
224
dd4f73f @mmerickel require ISession.invalidate to leave behind a usable session
mmerickel authored
225 - Clarify a previously-implied detail of the ``ISession.invalidate`` API
226 documentation.
227
3ffd40c @mmerickel update changelog
mmerickel authored
228 - Improve and clarify the documentation on what Pyramid defines as a
229 ``principal`` and a ``userid`` in its security APIs.
230 See https://github.com/Pylons/pyramid/pull/1399
231
7423971 @mcdonc fix merge conflicts
mcdonc authored
232 Scaffolds
233 ---------
234
235 - Update scaffold generating machinery to return the version of pyramid and
236 pyramid docs for use in scaffolds. Updated starter, alchemy and zodb
237 templates to have links to correctly versioned documentation and reflect
238 which pyramid was used to generate the scaffold.
239
93bc463 Added required notes to changes/contributors file.
Fenton Travers authored
240 - Removed non-ascii copyright symbol from templates, as this was
241 causing the scaffolds to fail for project generation.
242
109b2a0 @mcdonc make it possible to run scaffold functests using tox
mcdonc authored
243 - You can now run the scaffolding func tests via ``tox py2-scaffolds`` and
244 ``tox py3-scaffolds``.
245
Something went wrong with that request. Please try again.