Daniel Richman
3d67736e09
Check error handlers for specific classes first
...
This allows adding error handlers like this:
@app.errorhandler(werkzeug.exceptions.Forbidden)
And subclassing HTTPExceptions:
class ForbiddenBecauseReason(Forbidden): pass
@app.errorhandler(ForbiddenBecauseReason)
def error1(): return "Forbidden because reason", 403
@app.errorhandler(403)
def error2(): return "Forbidden", 403
... the idea being, that a flask extension might want to raise an
exception, with the default behaviour of creating a HTTP error page,
but still allowing the user to add a view/handler specific to that
exception (e.g., "Forbidden because you are not in the right group").
11 years ago
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.
11 years ago
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 .
11 years ago
Armin Ronacher
1a66a7e110
Added line for 1.0
11 years ago
Daniel Neuhäuser
f88cc2d2f9
Fix broken test_appcontext_signals test case
...
This fixes #781 and ensures that Flask is tested with blinker installed.
12 years ago
augustusdsouza
dda373823b
Fixed a typo
12 years ago
Armin Ronacher
e562acf029
Set release date for 0.10.1
12 years ago
Armin Ronacher
72bbeaf056
Added changelog entry for the method registering fix
12 years ago
Armin Ronacher
58ad83f37c
Added support for bytes in sessions back
12 years ago
Armin Ronacher
c502dfbbfb
Changed |tojson filter to quote single attributes
12 years ago
Armin Ronacher
5886925ff3
Started 0.10 maintenance branch for a bugfix release
12 years ago
Armin Ronacher
3061ab5b7e
Release date is today, codename is Limoncello
12 years ago
Armin Ronacher
964174931d
Added request.get_json().
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
62dbe0e1ca
The default run method is now accepting the port from the SERVER_NAME.
12 years ago
Armin Ronacher
0676bb8ab5
Added appcontext_pushed and appcontext_popped signals
12 years ago
Armin Ronacher
ef72b78042
Imply the |safe on tojson in templates and change escaping logic
12 years ago
Armin Ronacher
1b40b3b573
Fixed request context preservation and teardown handler interaction.
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
f1918093ac
Changed teardown error handling to be more reliable.
12 years ago
Armin Ronacher
4c27f7a8c4
Removed incorrect JSON exception subclasses
12 years ago
Thomas Waldmann
40fad2ece8
document python 2.6 minimum requirement, remove all stuff that refers to 2.5
12 years ago
Armin Ronacher
097353695e
Added flask.copy_current_request_context which simplies working with greenlets
12 years ago
Armin Ronacher
0faed95385
Documented new signal message_flashed
12 years ago
Armin Ronacher
4366bb392a
Documented new signal message_flashed
12 years ago
Armin Ronacher
bfeee75696
Changed session cookie defaults to work better with google chrome
12 years ago
Armin Ronacher
6bd0080575
Added workaround for Chrome cookies
12 years ago
Armin Ronacher
3b393f89f6
Added template_global, fixes #657
12 years ago
Armin Ronacher
f1537a9d7a
Always trap proxy exceptions
12 years ago
Armin Ronacher
2af0ffaef6
Added proxies to template context
12 years ago
Armin Ronacher
1949c4a9ab
flask.g is now on the app context and not the request context
12 years ago
Armin Ronacher
8339cb3508
Added support for unicode json dumping. This fixes #535
12 years ago
Armin Ronacher
f34c028125
Added template tests and made config a true global
12 years ago
Armin Ronacher
5e88c8184d
Removed deprecated and awkward flask.session module
12 years ago
Armin Ronacher
b146d8277a
Added wrapper module around simplejson/json for much simplified customization.
12 years ago
Armin Ronacher
f701f69947
Documented new error case
12 years ago
Armin Ronacher
c4f2075f4c
tojson no longer escapes script blocks in HTML5 parsers. Fixed #605
12 years ago
Armin Ronacher
3bec75d230
Set the content-length header for sendfile. Fixes #447
12 years ago
Armin Ronacher
c9a7fdf1b0
Documented latest commit in changelog
12 years ago
Armin Ronacher
ee28dcf2cf
Added changelog entry for 0.10
12 years ago
Armin Ronacher
4df3bf2058
Implemented experimental JSON based sessions
12 years ago
esaurito
d8e5a37d8a
Fixed codename
13 years ago
Laurens Van Houtven
56f5224ef7
CHANGES: July 1th should be July 1st
13 years ago
Armin Ronacher
ee3e251f9e
Updated CHANGES
13 years ago
Armin Ronacher
19def9606a
This is 0.8.1
13 years ago
Armin Ronacher
d5218997d9
Added flask.stream_with_context
13 years ago
Armin Ronacher
086348e2f2
Added after_this_request decorator.
13 years ago
Armin Ronacher
dbfd406a21
Added required_methods
13 years ago
Ron DuPlain
33bae1a8dc
Add Flask.request_globals_class to customize g.
...
Requested by toothr on #pocoo.
13 years ago