Armin Ronacher
964174931d
Added request.get_json().
12 years ago
Mark Steve Samson
6565bd848e
Fix typo
12 years ago
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 .
12 years ago
Armin Ronacher
efd6e468ae
Removed view_func from route documentaiton.
...
This fixes #763 .
12 years ago
Armin Ronacher
e17024e85a
Added a testcase for some more routing things between blueprints.
12 years ago
Armin Ronacher
94c6ae51d7
Some small cleanup
12 years ago
Armin Ronacher
62dbe0e1ca
The default run method is now accepting the port from the SERVER_NAME.
12 years ago
Armin Ronacher
05479eb954
Some reindentation cleanup
12 years ago
Armin Ronacher
93073489a0
Documented changes on the g object some more
12 years ago
Armin Ronacher
0676bb8ab5
Added appcontext_pushed and appcontext_popped signals
12 years ago
Armin Ronacher
fd99abea57
Fixed too strict tests for cookie setting that broke on werkzeug changes
12 years ago
Armin Ronacher
ef72b78042
Imply the |safe on tojson in templates and change escaping logic
12 years ago
Armin Ronacher
56d3b74488
Added a test for non-ascii routing
12 years ago
Armin Ronacher
1b40b3b573
Fixed request context preservation and teardown handler interaction.
12 years ago
Armin Ronacher
6dfe933260
Removed an unnecessary as statement
12 years ago
Armin Ronacher
0190b770a1
Removed a bunch of code from _compat
12 years ago
Armin Ronacher
c629f69e69
Make the JSON module work better in the absence of an application context
12 years ago
Armin Ronacher
77d293cf49
Order JSON keys by default to avoid trashing HTTP caches
12 years ago
Armin Ronacher
3d9055b3b7
Added the JSONIFY_PRETTYPRINT_REGULAR config variable. This fixes #725
12 years ago
Armin Ronacher
e07dcb5562
Adjusted a testcase for Python 3
12 years ago
Armin Ronacher
f1918093ac
Changed teardown error handling to be more reliable.
12 years ago
Armin Ronacher
90e3906d02
Fixed some test failures
12 years ago
Armin Ronacher
9ae8487330
Fixed a broekn testcase
12 years ago
Armin Ronacher
abc1505196
Fixed various issues on the Python 3 port
12 years ago
Thomas Waldmann
bbfef4c406
flask view function may return bytes/str/unicode
12 years ago
Thomas Waldmann
51042f4c9f
fix issues in test_context_refcounts that were unnoticed yet as they did not make the test fail
12 years ago
Armin Ronacher
8aaf302586
Disable direct passthrough for accessing the data attribute on newer Werkzeugs
12 years ago
Armin Ronacher
eb622fb34f
Fixed a whole bunch of resource warnings in the flask testsuite
12 years ago
Armin Ronacher
47572c5b40
Set the content length automatically before calling wrap_file
12 years ago
Armin Ronacher
ffd9296507
Close request objects if they support closing.
12 years ago
Armin Ronacher
775c76ac5c
Enabled test mode for an app
12 years ago
Daniel Neuhäuser
404265110a
Always return a list from get_flashed_messages
12 years ago
Thomas Waldmann
ac04bc7836
replace 1/0 by 1 // 0 to get rid of DeprecationWarning (and PEP8 issue)
12 years ago
Thomas Waldmann
13cc69911c
fix typos
12 years ago
Thomas Waldmann
f9e9e77464
fix data types in after_request test
...
TODO: why was that bug not causing / displaying an exception somehow?
should give a TypeError in py 3.3.
12 years ago
Thomas Waldmann
96b8ffbb29
always import from ._compat
12 years ago
Thomas Waldmann
83f7658572
fix metaclass usage for py3
12 years ago
Thomas Waldmann
af5576a6c5
fix iterator in testsuite helpers
12 years ago
Thomas Waldmann
8bb972e5ae
fix minitwit/flaskr test errors, improve docs about file open mode
...
app.open_resource needs to get called with the correct mode param (python3
will read bytes [not str] if the wrong mode is used), add mode param docs.
rv.data is bytes, fix the data type we compare it with to be also bytes
12 years ago
Tobias Bieniek
12c08c03fb
Fixed typo in app.blueprints docstring
12 years ago
Armin Ronacher
85ba8c96e9
Fixed a broken test
12 years ago
Armin Ronacher
4c27f7a8c4
Removed incorrect JSON exception subclasses
12 years ago
Armin Ronacher
eb023bcfad
Support old and new name for json
12 years ago
Daniel Neuhäuser
79ec3d81c1
Prevent UnboundLocalError in test_build_error_handler
12 years ago
Daniel Neuhäuser
43b6d0a6d0
Ensure that config file is closed immediately
12 years ago
Daniel Neuhäuser
a0801719f8
Remove six dependency
12 years ago
Daniel Neuhäuser
135c53a5f2
Fix .iteritems() access in flask.sessions
12 years ago
Markus Unterwaditzer
3d36d6efb9
Fix leak in leak detection code
...
If ensure_clean_request_context found a leak, it would raise an
AssertionError and not clean up the leak, and therefore affect other
testcases.
12 years ago
Daniel Neuhäuser
4bea6bbe6d
Make DebugFilesKeyError.__str__ return str on 3.x
12 years ago
Daniel Neuhäuser
3f80b0fd6c
module name is quoted in ImportErrors on 3.x
12 years ago