Daniel Neuhäuser
36d70d8789
Merge pull request #843 from wbowlin/master
...
corrected documentation for Request get_json()
2013-09-03 10:58:04 -07:00
Armin Ronacher
8f1dada542
Some cleanups
2013-09-02 04:57:01 +06:00
Will Bowlin
3e90de2e10
corrected documentation for Request get_json()
2013-08-23 00:22:57 -05:00
Maximilian Hils
17e5fb365d
Fix typo in docstring
2013-08-19 10:56:08 +02:00
Daniel Neuhäuser
2d8a21c732
Merge branch '0.10-maintenance'
2013-08-13 15:58:46 +02:00
Daniel Neuhäuser
94f4360137
Explain is_package AttributeError in find_package
...
When a PEP 302 import hook is used that doesn't implement .is_package()
an AttributeError is raised. This looks like a bug in Flask. This change
fixes that problem in the sense that it explains, that the
AttributeError is intentional.
2013-08-13 15:53:58 +02:00
Armin Ronacher
1b08d527c7
Merge branch 'master' of github.com:mitsuhiko/flask
2013-08-05 09:08:29 +01:00
Kevin Burke
9e5ab21c8e
app.py: Link to correct EnvironBuilder docs
2013-08-04 22:33:17 -07:00
Chason Chaffin
5e8dd8b287
Changed sort_json test to test str sorting
...
Tests when simplejson was installed were failing because of a change in
how it sorted in v3.0.0. This change first tests it via normal int
sorting for stdlib json then if that fails, it tests against str sorting
for simplejson.
2013-08-04 01:42:23 -07:00
Markus Unterwaditzer
af5a0853bf
Fix #815
2013-07-31 00:38:03 +02:00
Armin Ronacher
3e4dbf93d9
Fixed a test that broke on 3.x
2013-07-30 16:56:40 +02:00
Armin Ronacher
559ae196e7
Merge branch 'master' of github.com:mitsuhiko/flask
2013-07-30 16:45:23 +02:00
Armin Ronacher
d1d835c023
Added SESSION_REFRESH_EACH_REQUEST config option.
...
This also changes how sessions are being refreshed. With the new
behavior set-cookie is only emitted if the session is modified or if the
session is permanent. Permanent sessions can be set to not refresh
automatically through the SESSION_REFRESH_EACH_REQUEST config key.
This fixes #798 .
2013-07-30 16:43:54 +02:00
Robert Picard
b6116c1de3
Remove Werkzeug bug workaround from flask/app.py
...
According to the note in the comment, you had to check to make sure that the
defaults were not an empty dictionary because of a bug in Werkzeug pre-0.7.
Since Flask officially requires 0.7 or greater, we can remove this little
workaround.
2013-07-29 13:42:04 -04:00
Daniel Neuhäuser
c02c23ee30
Merge branch '0.10-maintenance'
...
Conflicts:
tox.ini
2013-06-27 16:52:34 +02:00
Daniel Neuhäuser
f88cc2d2f9
Fix broken test_appcontext_signals test case
...
This fixes #781 and ensures that Flask is tested with blinker installed.
2013-06-27 16:49:27 +02:00
Armin Ronacher
dfdcac2292
Fixed some embarrassing grammar
2013-06-14 10:54:16 +01:00
Armin Ronacher
977e7660ac
Master is 0.11-dev
2013-06-14 09:55:08 +01:00
Armin Ronacher
d94b1bec24
In case we need a 0.10.2
2013-06-14 09:54:27 +01:00
Armin Ronacher
298334fffc
Bump version number to 0.10.1
2013-06-14 09:54:07 +01:00
Serge S. Koval
44e39ab071
Fixed class-based views support
2013-06-14 10:28:37 +03:00
Armin Ronacher
c9337c044c
Merge branch '0.10-maintenance'
2013-06-14 00:24:27 +01:00
Armin Ronacher
58ad83f37c
Added support for bytes in sessions back
2013-06-14 00:24:17 +01:00
Armin Ronacher
63d9ede451
Merge branch '0.10-maintenance'
2013-06-14 00:05:55 +01:00
Armin Ronacher
c502dfbbfb
Changed |tojson filter to quote single attributes
2013-06-14 00:05:09 +01:00
Armin Ronacher
5886925ff3
Started 0.10 maintenance branch for a bugfix release
2013-06-13 23:36:50 +01:00
Armin Ronacher
ac187bded7
This is 0.11-dev
2013-06-13 09:36:03 +01:00
Armin Ronacher
3b9574fec9
Bump version number to 0.10
2013-06-13 09:35:35 +01:00
Daniel Neuhäuser
c7a683d2fd
Merge pull request #764 from marksteve/docs
...
Fix typo
2013-06-12 10:57:01 -07:00
Armin Ronacher
964174931d
Added request.get_json().
2013-06-12 16:27:48 +01:00
Mark Steve Samson
6565bd848e
Fix typo
2013-06-12 22:04:49 +08:00
Armin Ronacher
c889fbc231
Changed interface for flask.g
...
This now makes it behave like it did before, it's just an object.
It did however gain ``__contains__`` and ``__iter__`` and I added
a ``get()`` method to fetch an attribute without raising an
error. This fixes #759 .
2013-06-09 12:06:33 +01:00
Armin Ronacher
efd6e468ae
Removed view_func from route documentaiton.
...
This fixes #763 .
2013-06-09 11:46:43 +01:00
Armin Ronacher
e17024e85a
Added a testcase for some more routing things between blueprints.
2013-06-08 12:57:15 +01:00
Armin Ronacher
94c6ae51d7
Some small cleanup
2013-06-07 00:56:21 +01:00
Armin Ronacher
62dbe0e1ca
The default run method is now accepting the port from the SERVER_NAME.
2013-06-07 00:46:30 +01:00
Armin Ronacher
05479eb954
Some reindentation cleanup
2013-06-05 10:35:41 +01:00
Armin Ronacher
93073489a0
Documented changes on the g object some more
2013-06-05 10:02:33 +01:00
Armin Ronacher
0676bb8ab5
Added appcontext_pushed and appcontext_popped signals
2013-06-05 09:53:26 +01:00
Armin Ronacher
fd99abea57
Fixed too strict tests for cookie setting that broke on werkzeug changes
2013-06-05 09:47:31 +01:00
Armin Ronacher
ef72b78042
Imply the |safe on tojson in templates and change escaping logic
2013-06-03 12:25:08 +01:00
Armin Ronacher
56d3b74488
Added a test for non-ascii routing
2013-06-02 23:24:28 +01:00
Armin Ronacher
1b40b3b573
Fixed request context preservation and teardown handler interaction.
2013-06-02 21:47:32 +01:00
Armin Ronacher
6dfe933260
Removed an unnecessary as statement
2013-06-02 17:25:04 +01:00
Armin Ronacher
0190b770a1
Removed a bunch of code from _compat
2013-06-02 17:23:53 +01:00
Armin Ronacher
c629f69e69
Make the JSON module work better in the absence of an application context
2013-06-02 11:54:22 +01:00
Armin Ronacher
77d293cf49
Order JSON keys by default to avoid trashing HTTP caches
2013-06-01 19:24:03 +01:00
Armin Ronacher
3d9055b3b7
Added the JSONIFY_PRETTYPRINT_REGULAR config variable. This fixes #725
2013-06-01 00:20:00 +01:00
Armin Ronacher
da747738e8
Merge branch 'master' of github.com:mitsuhiko/flask
2013-05-30 21:39:22 +01:00
Armin Ronacher
e07dcb5562
Adjusted a testcase for Python 3
2013-05-30 18:17:04 +01:00