Day Barr
c021e58775
Fix typo in docs for error_handler_spec
11 years ago
Christopher Su
9cecf0d81c
moved Table import to next code block
11 years ago
Daniel Neuhäuser
5689ef3639
Fix typo s/at at/at a/
11 years ago
Daniel Neuhäuser
b63a9926dd
Merge branch '0.10-maintenance'
11 years ago
Daniel Neuhäuser
a3a2f521f1
Clear exceptions when pushing a context
...
Fixes #882
11 years ago
Daniel Neuhäuser
544118bef9
Merge pull request #891 from ThiefMaster/docs-flaskext
...
Don't refer to flaskext in app.extensions docs
11 years ago
Daniel Neuhäuser
4212e67d29
Merge pull request #890 from seancron/documentation-fix
...
Documentation fix: Makes the error names consistent
11 years ago
Daniel Neuhäuser
cab514e9f1
Merge pull request #886 from talam/patch-1
...
Updated some typos
11 years ago
Adrian
46b5754d97
Don't refer to flaskext in docs
11 years ago
Sean Cronin
a7f5d60789
Makes the error names consistent
11 years ago
Matt Skone
1df0f2dc1c
Escaped 'text' keyword in column name.
11 years ago
talam
b7f21831fa
Updated some typos
...
Fixed some incorrect variable references.
11 years ago
John Hobbs
e31a2a80ec
Update url_for documentation
...
Previous documentation referenced a non-existent property on the Flask
object called "build_error_handler".
This should actually reference Flask.url_build_error_handlers.
11 years ago
rsyring
fc85bf42ae
Update appfactories.rst, make extension related section clearer
11 years ago
Alexey Shamrin
f161a71c19
quickstart: import `request` in HTTP methods example
11 years ago
Hyunjun Kim
5ecca4c0da
Fix a typo on blueprints module name.
11 years ago
defuz
3e485009a8
add TEMPLATES_AUTO_RELOAD option to config
11 years ago
defuz
475b0c1cd9
fix typo (jsonfiy)
11 years ago
dmackinnon
231f45b432
Fix typo
11 years ago
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
Christopher Su
8089eb5769
added missing import in sqlalchemy doc
11 years ago
Oliver Beattie
2a512ab907
Merge branch 'master' of github.com:obeattie/flask
11 years ago
Oliver Beattie
bb882454a0
Make the decorators attribute on View a tuple by default
...
To discourage accidental runtime modification applying to all views.
11 years ago
Daniel Neuhäuser
5d20501604
Merge pull request #863 from jet-sun/patch-1
...
Fix typo.
11 years ago
Jet Sun
6ebe45b0ad
Fix typo.
11 years ago
Michael Bikovitsky
b7337080e4
Fix test_send_file_object
...
static/index.html now opens in binary mode, and therefore newline conversion does not take place.
11 years ago
Michael Bikovitsky
cff35237ef
Fix test_no_error_swallowing
...
Path in assertion is now cross-platform.
11 years ago
Wouter Van Hemel
079ae20f24
Add tests for user-defined exceptions in blueprints
11 years ago
Daniel Neuhäuser
ff59db16bc
Merge pull request #858 from svieira/patch-2
...
Patch for tutorial (minor code error)
11 years ago
Wouter Van Hemel
b03181363b
Add a non-decorator version of the error handler register function
...
The main application object has a register_error_handler function
which mirrors the decorator's functionality. According to the principle
of least surprise, make sure blueprints also have this convenience function.
11 years ago
Sean Vieira
12d6ec4130
Fix with block
11 years ago
Daniel Neuhäuser
36d70d8789
Merge pull request #843 from wbowlin/master
...
corrected documentation for Request get_json()
11 years ago
Daniel Neuhäuser
5207c69064
Fix #856 ommited typo in quickstart
11 years ago
Armin Ronacher
8f1dada542
Some cleanups
11 years ago
Armin Ronacher
51d7c8de7d
Merge branch 'master' of github.com:mitsuhiko/flask
11 years ago
Armin Ronacher
05161d3584
Rewrote tutorial to use the g based appcontext object
11 years ago
Armin Ronacher
42cf782ee3
Removed g object from example as it was unused
12 years ago
Daniel Neuhäuser
29f3a1ac23
Merge pull request #844 from adamobeng/patch-1
...
Fix typo
12 years ago
Adam Obeng
9cff681f97
Fix typo
12 years ago
Will Bowlin
3e90de2e10
corrected documentation for Request get_json()
12 years ago
Daniel Neuhäuser
be73233a55
Merge pull request #840 from mhils/master
...
Fix typo in docstring
12 years ago
Maximilian Hils
17e5fb365d
Fix typo in docstring
12 years ago
enkore
f5d38dc4fc
Update sessions.py
...
get_cookie_path: fix docstring
12 years ago
Daniel Neuhäuser
2d8a21c732
Merge branch '0.10-maintenance'
12 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.
12 years ago
Daniel Neuhäuser
f3c5bff990
Merge pull request #831 from homeworkprod/json-docs-typo-fix
...
Fixed tiny but distracting typo.
12 years ago
Jochen Kupperschmidt
8246ce6a15
Fixed tiny but distracting typo.
12 years ago
Jamie Grove
63a126c66a
Update blueprints.rst - Error Handlers
...
Added information about custom error handlers in Blueprints with example based simple_page.
12 years ago
Matt Wright
b290bf4079
Add ability to config from a JSON file
12 years ago
Armin Ronacher
1b08d527c7
Merge branch 'master' of github.com:mitsuhiko/flask
12 years ago