Commit graph

2653 commits

Author SHA1 Message Date
Daniel Neuhäuser
cab514e9f1 Merge pull request #886 from talam/patch-1
Updated some typos
2013-10-16 10:06:01 -07:00
Adrian
46b5754d97 Don't refer to flaskext in docs 2013-10-15 21:47:42 +02:00
Sean Cronin
a7f5d60789 Makes the error names consistent 2013-10-15 12:37:25 -04:00
Matt Skone
1df0f2dc1c Escaped 'text' keyword in column name. 2013-10-15 09:17:19 -07:00
talam
b7f21831fa Updated some typos
Fixed some incorrect variable references.
2013-10-12 18:14:26 -04:00
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.
2013-10-11 17:03:54 -05:00
rsyring
fc85bf42ae Update appfactories.rst, make extension related section clearer 2013-10-11 08:39:46 -04:00
Alexey Shamrin
f161a71c19 quickstart: import request in HTTP methods example 2013-10-03 05:15:27 +04:00
Hyunjun Kim
5ecca4c0da Fix a typo on blueprints module name. 2013-10-02 15:10:27 +09:00
defuz
3e485009a8 add TEMPLATES_AUTO_RELOAD option to config 2013-09-30 21:06:49 +03:00
defuz
475b0c1cd9 fix typo (jsonfiy) 2013-09-26 18:46:30 +03:00
dmackinnon
231f45b432 Fix typo 2013-09-25 11:50:02 -04:00
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").
2013-09-21 21:16:24 +00:00
Christopher Su
8089eb5769 added missing import in sqlalchemy doc 2013-09-19 23:31:09 -07:00
Oliver Beattie
2a512ab907 Merge branch 'master' of github.com:obeattie/flask 2013-09-09 15:15:47 +01:00
Oliver Beattie
bb882454a0 Make the decorators attribute on View a tuple by default
To discourage accidental runtime modification applying to all views.
2013-09-09 15:13:42 +01:00
Daniel Neuhäuser
5d20501604 Merge pull request #863 from jet-sun/patch-1
Fix typo.
2013-09-08 11:27:27 -07:00
Jet Sun
6ebe45b0ad Fix typo. 2013-09-07 17:42:06 -07:00
Michael Bikovitsky
b7337080e4 Fix test_send_file_object
static/index.html now opens in binary mode, and therefore newline conversion does not take place.
2013-09-07 18:29:49 +03:00
Michael Bikovitsky
cff35237ef Fix test_no_error_swallowing
Path in assertion is now cross-platform.
2013-09-07 18:21:15 +03:00
Wouter Van Hemel
079ae20f24 Add tests for user-defined exceptions in blueprints 2013-09-06 11:17:30 +03:00
Daniel Neuhäuser
ff59db16bc Merge pull request #858 from svieira/patch-2
Patch for tutorial (minor code error)
2013-09-04 07:54:42 -07:00
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.
2013-09-04 12:42:35 +03:00
Sean Vieira
12d6ec4130 Fix with block 2013-09-03 23:36:10 -04:00
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
Daniel Neuhäuser
5207c69064 Fix #856 ommited typo in quickstart 2013-09-03 19:47:00 +02:00
Armin Ronacher
8f1dada542 Some cleanups 2013-09-02 04:57:01 +06:00
Armin Ronacher
51d7c8de7d Merge branch 'master' of github.com:mitsuhiko/flask 2013-09-01 01:43:24 +06:00
Armin Ronacher
05161d3584 Rewrote tutorial to use the g based appcontext object 2013-09-01 01:32:41 +06:00
Armin Ronacher
42cf782ee3 Removed g object from example as it was unused 2013-08-30 19:50:45 +06:00
Daniel Neuhäuser
29f3a1ac23 Merge pull request #844 from adamobeng/patch-1
Fix typo
2013-08-25 04:25:50 -07:00
Adam Obeng
9cff681f97 Fix typo 2013-08-24 21:21:18 -04:00
Will Bowlin
3e90de2e10 corrected documentation for Request get_json() 2013-08-23 00:22:57 -05:00
Daniel Neuhäuser
be73233a55 Merge pull request #840 from mhils/master
Fix typo in docstring
2013-08-20 14:35:01 -07:00
Maximilian Hils
17e5fb365d Fix typo in docstring 2013-08-19 10:56:08 +02:00
enkore
f5d38dc4fc Update sessions.py
get_cookie_path: fix docstring
2013-08-17 21:32:52 +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
Daniel Neuhäuser
f3c5bff990 Merge pull request #831 from homeworkprod/json-docs-typo-fix
Fixed tiny but distracting typo.
2013-08-11 12:40:57 -07:00
Jochen Kupperschmidt
8246ce6a15 Fixed tiny but distracting typo. 2013-08-11 15:59:46 +02:00
Jamie Grove
63a126c66a Update blueprints.rst - Error Handlers
Added information about custom error handlers in Blueprints with example based simple_page.
2013-08-10 11:35:47 -04:00
Matt Wright
b290bf4079 Add ability to config from a JSON file 2013-08-07 18:03:37 -04: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
Armin Ronacher
a2bc61b5ab Merge pull request #819 from chason/master
Changed sort_json test to test str sorting
2013-08-04 13:59:22 -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
Armin Ronacher
08931401e8 Merge pull request #817 from llimllib/master
Fix doc bug in patterns/sqlite3, clarify use of make_dicts
2013-08-01 01:15:17 -07:00
Bill Mill
159ae3dc26 Fix doc bug, clarify use of make_dicts 2013-07-31 22:06:15 -04:00
Armin Ronacher
2e17ad7fd4 Merge pull request #816 from untitaker/allowed_methods
Fix #815
2013-07-31 07:44:44 -07:00
Markus Unterwaditzer
af5a0853bf Fix #815 2013-07-31 00:38:03 +02:00