Commit graph

281 commits

Author SHA1 Message Date
Markus Unterwaditzer
45c45ea73c Version 0.12 2016-12-21 21:19:53 +01:00
Michael Recachinas
bd5e297aa9 Default environ (#2047)
* Add init to FlaskClient

This addresses #1467. The init in the subclass
can now take in `environ_base`, which will then get
passed to `make_test_environ_builder` and to
`EnvironBuilder` via keyword args.

This should provide the default environment capability
on `app.test_client()` init.

* Add kwarg `environ_base` to `make_test_environ_builder` call

This change now passes `environ_base` from either
`kwargs` in `FlaskClient.open` or `FlaskClient.environ_base`
if passed into the init.

* Fix assignment reference typo

* Add default `environ_base` to `FlaskClient.__init__`

* Set default kwargs for `environ_base` in `FlaskClient.open`

* Remove specific environ_base kwarg since its in kwargs

* Add docstring to FlaskClient detailing environ_base

* Document app.test_client default environ in CHANGES

* Re-word environ_base changes in FlaskClient docstring

* Add client.environ_base tests

* Mention preset default environ in `app.test_client`

* Add versionchanged directive to docstring in FlaskClient
2016-10-12 08:54:24 +02:00
Joël Charles
7186a5aaf5 make use of range requests if available in werkzeug (#2031)
* make use of range requests if available in werkzeug

* different logic for testing werkzeug functionality
2016-09-26 12:43:46 +02:00
Armin Ronacher
83fd5b26b8 Merge branch 'feature/logger-propagation' 2016-09-12 21:54:41 +03:00
Armin Ronacher
9cd32cac32 Corrected after response for error handlers
Before this change after request functions were not correctly
invoked for error handlers.
2016-09-08 11:56:02 +03:00
Markus Unterwaditzer
dbcd64e2ee Changelog for #2006 2016-09-07 18:19:10 +02:00
Josh Soref
6e6c3a4636 Spelling (#1998)
* spelling: cacheability

* spelling: conceptually

* spelling: javascript

* spelling: reset

* spelling: raised

* comma: instead..., they...
2016-08-30 00:26:20 +02:00
Markus Unterwaditzer
71e10be286 Properly remove f.name usage in send_file (#1988)
* Properly remove f.name usage in send_file

* Update changelogs

* Fix tests
2016-08-26 03:08:03 +02:00
Armin Ronacher
e00e2c22aa Disable logger propagation by default 2016-08-25 15:41:46 +02:00
Markus Unterwaditzer
433c561494 Merge branch '0.11-maintenance' 2016-06-13 20:34:30 +02:00
Markus Unterwaditzer
6e46d0cd39 Fix PyPy3 support and add bug references
Fix #1841
2016-06-13 20:33:57 +02:00
Markus Unterwaditzer
b990d80764 Merge branch '0.11-maintenance' 2016-06-07 18:26:06 +02:00
Markus Unterwaditzer
d1d82ca8ce Bump version to 0.11.1 2016-06-07 18:22:43 +02:00
Giampaolo Eusebi
03ea11fe76 Make safe_join able to safely join multiple paths 2016-06-04 11:26:16 +02:00
Markus Unterwaditzer
225c311f1b Merge branch '0.11-maintenance' 2016-06-03 18:44:01 +02:00
Markus Unterwaditzer
2bde2065e6 Changelog for #1872 2016-06-03 18:43:32 +02:00
Dan Sully
8458cc5cd1 Remove deprecation warnings for add_etags & mimetype guessing for send_file()
Fix #1849
2016-06-03 14:52:33 +02:00
Armin Ronacher
41f3d67dff Update CHANGES 2016-06-02 13:53:35 +02:00
Jochen Kupperschmidt
9c46969890 Fixed link in changelog to documentation. (#1833)
Using the officially documented, shortcut package path of the `Config` class instead of the actual one.
2016-05-30 23:20:23 +02:00
Armin Ronacher
0e06302c79 Release is near 2016-05-29 11:01:22 +02:00
Armin Ronacher
8482ce6b8c Improve application context popping
Exceptions during teardown handling will no longer leave application
contexts lingering around.  This fixes #1767
2016-05-26 21:46:56 +02:00
Armin Ronacher
21d595bee7 Change changelog to 0.11 2016-05-26 21:05:39 +02:00
Steven Loria
2bf477cfea Add JSONIFY_MIMETYPE configuration variable (#1728)
Allow jsonify responses' mimetype to be configured
2016-04-08 15:30:47 -07:00
José Carlos García
567fff9d0d Change to Pallets project
* Update CHANGES

* Update CONTRIBUTING.rst

* Update setup.py

* Update tox.ini

* Update extensions.rst

* Update security.rst

* Update installation.rst

* Update testing.rst

* Update upgrading.rst

* Update sidebarintro.html

* Update jquery.rst

* Update dbcon.rst

* Update index.rst
2016-04-03 23:11:38 +02:00
Markus Unterwaditzer
bd667109c6 Changelog for #1763 2016-04-02 21:10:24 +02:00
Markus Unterwaditzer
7f26d45b16 Changelog for #1484 2016-04-02 21:08:58 +02:00
Jeff Widman
0edf0a0e3a Cleanup jsonify() function
Cleanup some leftover stuff from #1671. PEP8 spacing, args/kwargs don't need to be converted to list/dict, and Sphinx formatting.
2016-01-25 16:43:02 -08:00
Jeff Widman
daceb3e3a0 Add support for serializing top-level arrays to JSON
Fix #170, #248, #510, #673, #1177
2016-01-13 13:20:11 -08:00
hidavy
6102d210a3 Update CHANGES 2015-10-23 16:20:02 +08:00
Markus Unterwaditzer
81ae94a5fd Merge branch '0.10-maintenance' 2015-07-16 12:05:07 +02:00
Markus Unterwaditzer
765f851a7c Changelog for #1533 2015-07-16 12:01:25 +02:00
Alan Hamlett
99c99c4c16 Enable autoescape for render_template_string 2015-07-04 23:41:43 +02:00
ThiefMaster
bbaf20de7c Add pop and setdefault to AppCtxGlobals 2015-06-20 18:04:58 +02:00
Alexander Pantyukhin
a9066a3756 Changes and docs are modified. 2015-06-17 15:45:37 +02:00
Markus Unterwaditzer
1e857bfa71 Changelog for #1422 2015-06-06 03:31:51 +02:00
Markus Unterwaditzer
f0de0a6057 Changelog for #1393 2015-03-23 16:43:44 +01:00
Markus Unterwaditzer
0748e2daac Fix typo in changelog 2015-03-05 21:56:19 +01:00
Markus Unterwaditzer
51b011fac7 link to relevant PR
see #1326
2015-01-23 14:54:30 +01:00
Ben Jones
61263e08f9 Add datetime.date support to JSONEncoder 2015-01-23 07:44:17 -06:00
Markus Unterwaditzer
3f46f4f77a Add changelog for #1288 2014-12-26 20:16:25 +01:00
Marc Abramowitz
d9402fc0c0 Make jsonify terminate responses with a newline
This came up in the context of
https://github.com/kennethreitz/httpbin/issues/168
2014-12-07 14:37:26 -08:00
defuz
17eee81da0 docs: `Flask-Uploads, X-Forwarded-Host` 2014-11-05 07:23:47 +03:00
defuz
ad011bc32d docs: `DEBUG, SERVER_NAME, PATH_INFO` 2014-11-05 07:10:49 +03:00
defuz
02694d609f docs: :command:pip, :option:--debug 2014-11-05 07:03:55 +03:00
defuz
3fa4fd0908 docs: http method names like `GET and POST` 2014-11-05 06:13:01 +03:00
defuz
8284217593 docs: `True, False and None` 2014-11-05 06:04:58 +03:00
Markus Unterwaditzer
a1b273658d Merge pull request #1222 from defuz/templates_auto_reload-eq-none
Set TEMPLATE_AUTO_RELOAD default value to None
2014-11-02 20:46:48 +01:00
defuz
76f3d6b45e improve TEMPLATE_AUTO_RELOAD docs 2014-10-30 18:40:38 +03:00
Petr Zemek
ebab6718f7 Unify the uses of "testsuite" vs "test suite".
Use "test suite", which is more prevailing in the source code.
2014-10-27 11:31:01 +01:00
defuz
f88765d504 set TEMPLATE_AUTO_RELOAD default value to None 2014-10-26 18:28:12 +03:00