Commit graph

513 commits

Author SHA1 Message Date
Daniel Neuhäuser
135c53a5f2 Fix .iteritems() access in flask.sessions 2013-05-22 21:30:45 +02:00
Daniel Neuhäuser
d395d3684a Merge pull request #739 from untitaker/sprint-branch
Fix leak in leak detection code
2013-05-22 12:16:25 -07:00
Markus Unterwaditzer
3d36d6efb9 Fix leak in leak detection code
If ensure_clean_request_context found a leak, it would raise an
AssertionError and not clean up the leak, and therefore affect other
testcases.
2013-05-22 21:09:32 +02:00
Daniel Neuhäuser
4bea6bbe6d Make DebugFilesKeyError.__str__ return str on 3.x 2013-05-22 21:07:53 +02:00
Daniel Neuhäuser
3f80b0fd6c module name is quoted in ImportErrors on 3.x 2013-05-22 21:03:01 +02:00
Daniel Neuhäuser
8f73c552a9 Add missing assertIn, assertNotIn methods on 2.6 2013-05-22 20:53:32 +02:00
Daniel Neuhäuser
62e7275bdf Use assert_false where appropriate 2013-05-22 20:17:29 +02:00
Daniel Neuhäuser
9f8a2075c7 Use assert_in where appropriate 2013-05-22 20:12:50 +02:00
Daniel Neuhäuser
4d73ef1a19 Add missing msg argument to assert_true() 2013-05-22 19:19:46 +02:00
Daniel Neuhäuser
8e9f0bdedc Use assert_equal instead of assertEquals
assertEquals is deprecated and its use inconsistent
2013-05-22 17:30:37 +02:00
Daniel Neuhäuser
239780be28 Use assert_true instead of assert_
assert_ is deprecated which causes annoying warnings
2013-05-22 17:23:38 +02:00
Daniel Neuhäuser
5b89355b1c Response data is bytes 2013-05-22 17:14:07 +02:00
Markus Unterwaditzer
05f66ad735 Fix some literals 2013-05-22 17:09:37 +02:00
Daniel Neuhäuser
3f51a09db4 itsdangerous uses json instead of simplejson now 2013-05-22 16:33:50 +02:00
Thomas Waldmann
e1d356fb71 ported some more stuff to py 3.3
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")

removed with_statement future imports, not needed any more

needs more work on 2.7 as well as on 3.3
2013-05-22 01:33:04 +02:00
Thomas Waldmann
a503520ac5 copy _compat.py from flask in here (and adapt docstring) 2013-05-21 23:34:25 +02:00
Armin Ronacher
aecc41deb8 Restore 2.5 support for the time being 2013-05-20 09:47:07 +01:00
Daniel Neuhäuser
c618db92d6 reload_module is in six.moves 2013-05-18 18:55:36 +02:00
Daniel Neuhäuser
8494574fdf Merge branch 'six' of github.com:ThomasWaldmann/flask into ThomasWaldmann-six
Conflicts:
	flask/testsuite/__init__.py
2013-05-18 18:54:45 +02:00
Thomas Waldmann
287905e67c py3 compat: use six.reload_module 2013-05-18 18:39:10 +02:00
Thomas Waldmann
522cd00093 python-modernize automated changes: fix_unicode (but without six.u()) 2013-05-18 18:12:30 +02:00
Thomas Waldmann
dcd052366b python-modernize automated changes: fix_next 2013-05-18 18:03:37 +02:00
Thomas Waldmann
0f8c47c988 python-modernize automated changes: fix_dict 2013-05-18 18:00:15 +02:00
Thomas Waldmann
cfbfff2d26 python-modernize automated changes: misc. minor stuff 2013-05-18 17:57:43 +02:00
Thomas Waldmann
1b753cb1b1 require 'six' in setup.py, add flask._compat for stuff not yet in 'six' 2013-05-18 17:47:40 +02:00
Daniel Neuhäuser
05923f7f2f Merge branch 'exec' of github.com:ThomasWaldmann/flask into sprint-branch
Conflicts:
	flask/config.py
2013-05-18 17:32:38 +02:00
Daniel Neuhäuser
26a9e90734 Merge pull request #734 from ThomasWaldmann/methodattrs
automated change using python-modernize: fix methodattrs
2013-05-18 08:24:45 -07:00
Daniel Neuhäuser
bbdfc83902 Merge pull request #732 from ThomasWaldmann/exceptions_as
automated change using python-modernize: use 'as' in except
2013-05-18 08:24:00 -07:00
Thomas Waldmann
40fad2ece8 document python 2.6 minimum requirement, remove all stuff that refers to 2.5 2013-05-18 17:06:25 +02:00
Thomas Waldmann
b8b769ad41 automated change using python-modernize: fix methodattrs 2013-05-18 16:39:39 +02:00
Thomas Waldmann
b52b7b1f93 automated change using python-modernize: replace execfile 2013-05-18 16:31:40 +02:00
Thomas Waldmann
6caaa8a527 automated change using python-modernize: use 'as' in except 2013-05-18 16:24:40 +02:00
Armin Ronacher
574a97cd70 Disabled memory tests by default 2013-05-14 11:51:38 +01:00
Armin Ronacher
335e0af731 Merge pull request #708 from xealot/master
Blueprint.after_request causes Flask to ignore @after_this_request
2013-05-14 03:36:29 -07:00
Armin Ronacher
c349c91aff Added support for UUID objects to JSON serializer as well 2013-05-14 11:35:45 +01:00
Armin Ronacher
18673ba370 Added uuid support for new session serialization and documented it 2013-05-14 11:33:36 +01:00
Armin Ronacher
2ba37d2b85 Fixed some rst markup problems 2013-05-14 11:33:13 +01:00
Armin Ronacher
30d9efb24a Merge branch 'master' of github.com:mitsuhiko/flask 2013-05-14 11:00:45 +01:00
Armin Ronacher
097353695e Added flask.copy_current_request_context which simplies working with greenlets 2013-05-14 11:00:04 +01:00
Trey Long
f74f446961 fixing process_response
Flask.process_response will throw away functions is receives from ctx._after_request_functions if there is a Blueprint that has used @after_request.
2013-04-04 12:31:42 -03:00
Tomasz Kalkosiński
78ae0ec7f8 Add import to jsonify example. 2013-03-25 12:29:28 +01:00
Paulo Poiati
b2aae044ca Flash messages signals
If we send a signal when a template is rendered why not when a message
is flashed? One real world use case is in tests, this signal should make
flash messages expectation easier to implement.
2013-02-28 01:19:52 -03:00
Armin Ronacher
bfeee75696 Changed session cookie defaults to work better with google chrome 2013-01-29 19:31:45 +00:00
Armin Ronacher
6bd0080575 Added workaround for Chrome cookies 2013-01-28 15:08:54 +00:00
Armin Ronacher
6ab569b0e3 Added note on teardown in debug mode. Fixes #661 2013-01-27 00:56:01 +00:00
Armin Ronacher
3b393f89f6 Added template_global, fixes #657 2013-01-27 00:46:19 +00:00
Kenneth Reitz
777c0c56b5 Merge pull request #630 from untitaker/doc_fix_appctx
Fix #623
2013-01-24 20:13:30 -08:00
Max Countryman
b5069d07a2 adding _scheme parameter to url_for
In order to better facilitate generation of URLs that make use of an HTTPS URL
scheme this patch adds a parameter with this specific purpose in mind. To
achieve this we explicitly pass in a param, `_scheme='https'`, and then set the
`url_scheme` attribute of our `MapAdapter` instance appropriately.

Importantly, `_external=True` must be set in order for this to work properly.
As such, failure to do so results in a `ValueError` being raised.
2013-01-21 16:18:46 -08:00
Armin Ronacher
61d3bbf1d2 Fixed last commit and added test 2013-01-21 17:55:07 +00:00
Armin Ronacher
f1537a9d7a Always trap proxy exceptions 2013-01-21 17:44:32 +00:00