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 .
2013-06-09 12:06:33 +01:00
Armin Ronacher
efd6e468ae
Removed view_func from route documentaiton.
...
This fixes #763 .
2013-06-09 11:46:43 +01:00
Armin Ronacher
23d8d66256
Added site name to persona login
2013-06-09 01:39:51 +01:00
Armin Ronacher
5f648a8eb8
Added Persona example
2013-06-09 01:30:15 +01:00
Armin Ronacher
e17024e85a
Added a testcase for some more routing things between blueprints.
2013-06-08 12:57:15 +01:00
Armin Ronacher
681cb8f366
Switch to teardown_appcontext for docs in sqlalchemy pattern
2013-06-07 15:42:49 +01:00
Armin Ronacher
94c6ae51d7
Some small cleanup
2013-06-07 00:56:21 +01:00
Armin Ronacher
62dbe0e1ca
The default run method is now accepting the port from the SERVER_NAME.
2013-06-07 00:46:30 +01:00
Armin Ronacher
05479eb954
Some reindentation cleanup
2013-06-05 10:35:41 +01:00
Armin Ronacher
93073489a0
Documented changes on the g object some more
2013-06-05 10:02:33 +01:00
Armin Ronacher
1f6be7ff63
Added example on faking resources and context
2013-06-05 09:58:28 +01:00
Armin Ronacher
0676bb8ab5
Added appcontext_pushed and appcontext_popped signals
2013-06-05 09:53:26 +01:00
Armin Ronacher
fd99abea57
Fixed too strict tests for cookie setting that broke on werkzeug changes
2013-06-05 09:47:31 +01:00
Armin Ronacher
ef72b78042
Imply the |safe on tojson in templates and change escaping logic
2013-06-03 12:25:08 +01:00
Armin Ronacher
56d3b74488
Added a test for non-ascii routing
2013-06-02 23:24:28 +01:00
Armin Ronacher
1b40b3b573
Fixed request context preservation and teardown handler interaction.
2013-06-02 21:47:32 +01:00
Armin Ronacher
6dfe933260
Removed an unnecessary as statement
2013-06-02 17:25:04 +01:00
Armin Ronacher
0190b770a1
Removed a bunch of code from _compat
2013-06-02 17:23:53 +01:00
Armin Ronacher
c629f69e69
Make the JSON module work better in the absence of an application context
2013-06-02 11:54:22 +01:00
Armin Ronacher
77d293cf49
Order JSON keys by default to avoid trashing HTTP caches
2013-06-01 19:24:03 +01:00
Armin Ronacher
3d9055b3b7
Added the JSONIFY_PRETTYPRINT_REGULAR config variable. This fixes #725
2013-06-01 00:20:00 +01:00
Armin Ronacher
1c8c21abd5
Let travis notify the #pocoo irc channel
2013-05-31 00:59:54 +01:00
Armin Ronacher
e9fa24cfa3
Make travis install development werkzeug
2013-05-31 00:56:09 +01:00
Armin Ronacher
6bd5dfad0c
Test Flask against werkzeug master
2013-05-30 21:39:54 +01:00
Armin Ronacher
da747738e8
Merge branch 'master' of github.com:mitsuhiko/flask
2013-05-30 21:39:22 +01:00
Armin Ronacher
29e63e01ab
Merge branch 'sprint-branch'
2013-05-30 21:39:06 +01:00
Armin Ronacher
b8aa9fed9a
Added tox-test command
2013-05-30 18:19:01 +01:00
Armin Ronacher
e07dcb5562
Adjusted a testcase for Python 3
2013-05-30 18:17:04 +01:00
Armin Ronacher
f1918093ac
Changed teardown error handling to be more reliable.
2013-05-30 18:15:17 +01:00
Armin Ronacher
90e3906d02
Fixed some test failures
2013-05-30 17:58:27 +01:00
Armin Ronacher
9ae8487330
Fixed a broekn testcase
2013-05-30 16:16:39 +01:00
Armin Ronacher
7f35fc2935
Merge pull request #751 from ThomasWaldmann/sprint-branch
...
fixing issues found while debugging, fix error in 1 test
2013-05-30 07:08:17 -07:00
Armin Ronacher
abc1505196
Fixed various issues on the Python 3 port
2013-05-30 15:07:18 +01:00
Thomas Waldmann
bbfef4c406
flask view function may return bytes/str/unicode
2013-05-30 16:02:28 +02:00
Thomas Waldmann
51042f4c9f
fix issues in test_context_refcounts that were unnoticed yet as they did not make the test fail
2013-05-30 16:00:43 +02:00
Armin Ronacher
8aaf302586
Disable direct passthrough for accessing the data attribute on newer Werkzeugs
2013-05-30 14:35:23 +01:00
Armin Ronacher
eb622fb34f
Fixed a whole bunch of resource warnings in the flask testsuite
2013-05-30 14:31:36 +01:00
Armin Ronacher
47572c5b40
Set the content length automatically before calling wrap_file
2013-05-30 14:24:29 +01:00
Armin Ronacher
ffd9296507
Close request objects if they support closing.
2013-05-30 12:51:12 +01:00
Armin Ronacher
775c76ac5c
Enabled test mode for an app
2013-05-30 12:48:04 +01:00
Daniel Neuhäuser
404265110a
Always return a list from get_flashed_messages
2013-05-26 21:46:22 +02:00
Daniel Neuhäuser
915d7180fc
Merge pull request #747 from ThomasWaldmann/sprint-branch
...
replace 1/0 by 1 // 0 to get rid of DeprecationWarning (and PEP8 issue)
2013-05-26 11:41:28 -07:00
Thomas Waldmann
ac04bc7836
replace 1/0 by 1 // 0 to get rid of DeprecationWarning (and PEP8 issue)
2013-05-26 20:33:22 +02:00
Thomas Waldmann
0f5d8c258c
Merge branch 'sprint-branch' of https://github.com/mitsuhiko/flask into sprint-branch
2013-05-26 19:15:53 +02:00
Daniel Neuhäuser
bb2e20f53f
Depends on itsdangerous>=0.12 now
2013-05-26 15:37:52 +02:00
Daniel Neuhäuser
77753e9b73
Merge pull request #746 from ThomasWaldmann/sprint-branch
...
fix typos
2013-05-25 13:06:43 -07:00
Thomas Waldmann
f4f4c3555f
Merge branch 'sprint-branch' of https://github.com/mitsuhiko/flask into sprint-branch
2013-05-25 22:04:37 +02:00
Thomas Waldmann
13cc69911c
fix typos
2013-05-25 22:01:14 +02:00
Daniel Neuhäuser
4baeac07d9
Merge pull request #745 from ThomasWaldmann/sprint-branch
...
fix data types in after_request test
2013-05-25 12:01:49 -07:00
Thomas Waldmann
f9e9e77464
fix data types in after_request test
...
TODO: why was that bug not causing / displaying an exception somehow?
should give a TypeError in py 3.3.
2013-05-25 20:58:12 +02:00