Commit graph

3112 commits

Author SHA1 Message Date
dcfix
2b0f3c2fea Demonstrate how to add multiple urls to the same function endpoint #981 (#1900)
* Demonstrate how to add multiple urls to the same function endpoint

* Removed text as per untitaker, fixed spacing to be pep-8 compliant
2016-06-16 22:40:23 +02:00
Archie Roller
6996bc4fab Fix #1911 (#1913) 2016-06-15 09:27:06 -07:00
Leo Tindall
0598d344a7 Documentation: Clarify instructions about changing row_factory for SQLite3 (#1573)
* Clarify instructions about changing row_factory

When I was working through the tutorial, this was very confusing to me; so, I've added the code and clarification that would have helped me get through it faster.

* Clarify the nature of Row objects

* Rewrite code example for further clarity.
2016-06-14 23:55:47 -07:00
Dave Barker
015fbbfa08 Remove unnecessary werkzeug mock attribs from test 2016-06-15 02:25:48 +01:00
Dave Barker
02d1f8a09d Add test for new template auto reload debug behaviour 2016-06-15 02:15:33 +01:00
Markus Unterwaditzer
0d6155cbb2 Merge pull request #1912 from pallets/revert-1811-iss1809_register_blueprint_docs
Revert "Addressing Issue 1809"
2016-06-14 22:46:27 +02:00
Markus Unterwaditzer
73246f4274 Revert "Addressing Issue 1809" 2016-06-14 22:45:24 +02:00
Dave Barker
f76fa124a8 Enable template auto-reloading in app.run()
When Flask app debugging is enabled (app.debug==True), and Jinja2
template auto-reloading is not explicitly disbaled, template
auto-reloading should be enabled.

If the app is instantiated, the jinja_env object is accessed (thereby
initialising the Jinja2 environment) and the server is then started with
app.run(debug=True), template auto-reloading is *not* enabled.

This is because reading the jinja_env object causes the environment
initialisation function to set auto_reload to app.debug (which isn't yet
True). Calling app.run(debug=True) should correct this in order to
remain consistent with Flask code reloading (which is enabled within
app.run() if debug == True).
2016-06-14 00:59:32 +01:00
Markus Unterwaditzer
37e8f151d0 Merge branch '0.11-maintenance' 2016-06-13 20:34:30 +02:00
Markus Unterwaditzer
1fa0715c20 Fix PyPy3 support and add bug references
Fix #1841
2016-06-13 20:33:57 +02:00
Anton Sarukhanov
71cad1c991 Added make target for test coverage, documented make commands 2016-06-08 08:26:01 -04:00
RamiC
ba6e6a61cc Check for a request ctx before using the request.
Use the app json coder when blueprint json coder is set to none.
Revert the failling test to using an app_context
re #1710
2016-06-08 12:58:56 +03:00
RamiC
6c37f40c34 Allow per blueprint json encoder decoder
re #1710
2016-06-08 12:03:26 +03:00
Markus Unterwaditzer
e982b96b07 Merge pull request #1881 from antsar/master
Add test for find_default_import_path
2016-06-07 20:12:40 +02:00
Markus Unterwaditzer
040927f9a9 Merge branch '0.11-maintenance' 2016-06-07 18:26:06 +02:00
Markus Unterwaditzer
5bc51e3296 This is 0.11.2-dev 2016-06-07 18:23:09 +02:00
Markus Unterwaditzer
c347825eff Bump version to 0.11.1 2016-06-07 18:22:43 +02:00
Anton Sarukhanov
a4f9c63bb2 Add test for find_default_import_path 2016-06-07 08:03:55 -04:00
Markus Unterwaditzer
6f7d95b217 Merge pull request #1892 from avborhanian/patch-1
Updating url in errorhandling.rst to a valid link
2016-06-06 17:37:07 +02:00
avborhanian
cf0223b8a8 Updating url in errorhandling.rst to a valid link
Was originally set to github.com/getsentry/sentry, which was a relative link to a page that doesn't exist. I prepended https:// to fix this problem.
2016-06-06 11:29:14 -04:00
Markus Unterwaditzer
aabe35eef8 Fix several typos in python3.rst
- complicated -> complicates, since the effect continues into the
  future. See #1891

- effect -> affect

- Rewrap paragraph
2016-06-06 13:39:14 +02:00
Ryan Backman
8849c044eb Clarify wording in App Context documentation. (#1890) 2016-06-06 13:03:01 +02:00
David Lord
e180c97459 clean up py3 info more 2016-06-05 15:45:39 -07:00
alatar-
270fc4f15b Update documentation about python 3 support in Flask, resolves #1578 2016-06-05 15:25:35 -07:00
David Lord
fda1effc4b move note about next param, add example, other cleanup 2016-06-05 14:21:17 -07:00
Ping Hu
7e5c3249be Add clarification for login_required decorator ref #313 2016-06-05 13:22:19 -07:00
David Lord
02fcbce94c use pip instead of setup.py in fabric command 2016-06-05 13:12:25 -07:00
David Lord
1f3a79be17 move setup.cfg info to setuptools docs, reword 2016-06-05 12:59:04 -07:00
Shawn McElroy
cbe6c91915 updating docs and showing how to use setup.cfg to configure dev builds with sdist 2016-06-05 12:50:44 -07:00
David Lord
2560444f47 pass value directly to last_modified 2016-06-05 12:42:34 -07:00
Prachi Shirish Khadke
cd408cc462 Add last_modified arg for send_file
Enhancement: Add last_modified arg of type DateTime to send_file.

Fixes pallets/flask#1321
2016-06-05 10:59:17 -07:00
Hyunchel Kim
266bd27e7b Test side effect (#1889)
Function `prepare_exec_for_file` has a side effect where a path is added to
`sys.path` list.
This commit enhances an exisiting test case for `prepare_exec_for_file`
by testing the side effect of the function and adding necessary
comments.
2016-06-05 10:32:00 -07:00
Markus Unterwaditzer
b692268dd5 Merge pull request #1730 from geusebi/master
make safe_join behave like os.path.join with *args
2016-06-04 21:12:55 +02:00
Giampaolo Eusebi
74dafdf63b Add tests for safe_join 2016-06-04 11:26:44 +02:00
Giampaolo Eusebi
89235f20e4 Make safe_join able to safely join multiple paths 2016-06-04 11:26:16 +02:00
RamiC
058be53187 Mention the template name conflict issue in blueprint templates docs (#1843)
* Mention the template name conflict issue in docs.
In the blueprints templates documentation mention
the possible templates name conflict issue
re #266

* Mention priorities between blueprints
and other rephrasing fixes
2016-06-03 23:25:16 -07:00
Zev Averbach
7c8c094925 enumerates the states in which code is executed...
... and fixes an awkward phrasing.
2016-06-03 16:59:15 -07:00
Randy Liou
99eda625f6 Enhance code coverage for Blueprint.endpoint
Add basic test for the endpoint decorator for the Blueprint object.
2016-06-03 16:02:45 -07:00
Josh
86617a9b59 Expanding contribution documentation (#1883)
- README updated with link to CONTRIBUTING.rst
- CONTRIBUTING.rst has instructions on running code coverage
2016-06-03 14:32:10 -07:00
dawran6
b110065f9c Add negative test for json.jsonify (#1876)
Test if jsonify function raises TypeError when both args and kwargs are
passed in.
Check the TypeError's message
2016-06-03 10:58:39 -07:00
Markus Unterwaditzer
f02ce546c3 Merge branch '0.11-maintenance' 2016-06-03 18:44:01 +02:00
Markus Unterwaditzer
f7f0e9e4e0 Changelog for #1872 2016-06-03 18:43:32 +02:00
Markus Unterwaditzer
0eb6a1457d Merge branch '0.11-maintenance' 2016-06-03 18:42:16 +02:00
Josiah Philipsen
611e293555 fixed unmatched elif
Also update relevant test
2016-06-03 18:42:07 +02:00
jphilipsen05
92000b6658 fixed unmatched elif (#1872) 2016-06-03 18:41:10 +02:00
James Farrington
7ec2989039 Tests with and without simplejson for every existing testenv (#1869) 2016-06-03 09:29:12 -07:00
Markus Unterwaditzer
f3879b61ee Merge pull request #1868 from antsar/master
Rewrite subclassing example with a better use-case.
2016-06-03 14:55:33 +02:00
Dan Sully
51c2069872 Remove deprecation warnings for add_etags & mimetype guessing for send_file()
Fix #1849
2016-06-03 14:52:33 +02:00
Markus Unterwaditzer
fc6b1f31a1 Merge pull request #1878 from untitaker/recwarn
Use recwarn everywhere
2016-06-03 14:44:13 +02:00
Markus Unterwaditzer
0265d02b19 Eliminate some resource warnings 2016-06-03 14:29:27 +02:00