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
11 years ago
Daniel Neuhäuser
29f3a1ac23
Merge pull request #844 from adamobeng/patch-1
...
Fix typo
11 years ago
Adam Obeng
9cff681f97
Fix typo
11 years ago
Will Bowlin
3e90de2e10
corrected documentation for Request get_json()
11 years ago
Daniel Neuhäuser
be73233a55
Merge pull request #840 from mhils/master
...
Fix typo in docstring
11 years ago
Maximilian Hils
17e5fb365d
Fix typo in docstring
11 years ago
enkore
f5d38dc4fc
Update sessions.py
...
get_cookie_path: fix docstring
11 years ago
Daniel Neuhäuser
2d8a21c732
Merge branch '0.10-maintenance'
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
Daniel Neuhäuser
f3c5bff990
Merge pull request #831 from homeworkprod/json-docs-typo-fix
...
Fixed tiny but distracting typo.
11 years ago
Jochen Kupperschmidt
8246ce6a15
Fixed tiny but distracting typo.
11 years ago
Jamie Grove
63a126c66a
Update blueprints.rst - Error Handlers
...
Added information about custom error handlers in Blueprints with example based simple_page.
11 years ago
Matt Wright
b290bf4079
Add ability to config from a JSON file
11 years ago
Armin Ronacher
1b08d527c7
Merge branch 'master' of github.com:mitsuhiko/flask
11 years ago
Kevin Burke
9e5ab21c8e
app.py: Link to correct EnvironBuilder docs
11 years ago
Armin Ronacher
a2bc61b5ab
Merge pull request #819 from chason/master
...
Changed sort_json test to test str sorting
11 years ago
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.
11 years ago
Armin Ronacher
08931401e8
Merge pull request #817 from llimllib/master
...
Fix doc bug in patterns/sqlite3, clarify use of make_dicts
11 years ago
Bill Mill
159ae3dc26
Fix doc bug, clarify use of make_dicts
11 years ago
Armin Ronacher
2e17ad7fd4
Merge pull request #816 from untitaker/allowed_methods
...
Fix #815
11 years ago
Markus Unterwaditzer
af5a0853bf
Fix #815
11 years ago
Armin Ronacher
3e4dbf93d9
Fixed a test that broke on 3.x
11 years ago
Armin Ronacher
559ae196e7
Merge branch 'master' of github.com:mitsuhiko/flask
11 years ago