Daniel Neuhäuser
79ec3d81c1
Prevent UnboundLocalError in test_build_error_handler
12 years ago
Daniel Neuhäuser
43b6d0a6d0
Ensure that config file is closed immediately
12 years ago
Daniel Neuhäuser
a0801719f8
Remove six dependency
12 years ago
Daniel Neuhäuser
135c53a5f2
Fix .iteritems() access in flask.sessions
12 years ago
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.
12 years ago
Daniel Neuhäuser
4bea6bbe6d
Make DebugFilesKeyError.__str__ return str on 3.x
12 years ago
Daniel Neuhäuser
3f80b0fd6c
module name is quoted in ImportErrors on 3.x
12 years ago
Daniel Neuhäuser
8f73c552a9
Add missing assertIn, assertNotIn methods on 2.6
12 years ago
Daniel Neuhäuser
62e7275bdf
Use assert_false where appropriate
12 years ago
Daniel Neuhäuser
9f8a2075c7
Use assert_in where appropriate
12 years ago
Daniel Neuhäuser
4d73ef1a19
Add missing msg argument to assert_true()
12 years ago
Daniel Neuhäuser
8e9f0bdedc
Use assert_equal instead of assertEquals
...
assertEquals is deprecated and its use inconsistent
12 years ago
Daniel Neuhäuser
239780be28
Use assert_true instead of assert_
...
assert_ is deprecated which causes annoying warnings
12 years ago
Daniel Neuhäuser
5b89355b1c
Response data is bytes
12 years ago
Markus Unterwaditzer
05f66ad735
Fix some literals
12 years ago
Daniel Neuhäuser
3f51a09db4
itsdangerous uses json instead of simplejson now
12 years ago
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
12 years ago
Thomas Waldmann
a503520ac5
copy _compat.py from flask in here (and adapt docstring)
12 years ago
Armin Ronacher
aecc41deb8
Restore 2.5 support for the time being
12 years ago
Daniel Neuhäuser
c618db92d6
reload_module is in six.moves
12 years ago
Thomas Waldmann
287905e67c
py3 compat: use six.reload_module
12 years ago
Thomas Waldmann
522cd00093
python-modernize automated changes: fix_unicode (but without six.u())
12 years ago
Thomas Waldmann
dcd052366b
python-modernize automated changes: fix_next
12 years ago
Thomas Waldmann
0f8c47c988
python-modernize automated changes: fix_dict
12 years ago
Thomas Waldmann
cfbfff2d26
python-modernize automated changes: misc. minor stuff
12 years ago
Thomas Waldmann
1b753cb1b1
require 'six' in setup.py, add flask._compat for stuff not yet in 'six'
12 years ago
Thomas Waldmann
40fad2ece8
document python 2.6 minimum requirement, remove all stuff that refers to 2.5
12 years ago
Thomas Waldmann
b8b769ad41
automated change using python-modernize: fix methodattrs
12 years ago
Thomas Waldmann
b52b7b1f93
automated change using python-modernize: replace execfile
12 years ago
Thomas Waldmann
6caaa8a527
automated change using python-modernize: use 'as' in except
12 years ago
Armin Ronacher
574a97cd70
Disabled memory tests by default
12 years ago
Armin Ronacher
c349c91aff
Added support for UUID objects to JSON serializer as well
12 years ago
Armin Ronacher
18673ba370
Added uuid support for new session serialization and documented it
12 years ago
Armin Ronacher
2ba37d2b85
Fixed some rst markup problems
12 years ago
Armin Ronacher
097353695e
Added flask.copy_current_request_context which simplies working with greenlets
12 years ago
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 .
12 years ago
Steve Leonard
b9355a7d5f
Mention register_error_handler in errorhandler doc
...
The documentation for @errorhandler gives "app.error_handler_spec[None][404] = page_not_found" as an example for adding an error handler without the decorator. However, register_error_handler appears to be the correct way to do this (added 0.7), and it eliminates the problems with modifying error_handler_spec directly.
12 years ago
Tomasz Kalkosiński
78ae0ec7f8
Add import to jsonify example.
12 years ago
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.
12 years ago
Armin Ronacher
bfeee75696
Changed session cookie defaults to work better with google chrome
12 years ago
Armin Ronacher
6bd0080575
Added workaround for Chrome cookies
12 years ago
Armin Ronacher
6ab569b0e3
Added note on teardown in debug mode. Fixes #661
12 years ago
Armin Ronacher
3b393f89f6
Added template_global, fixes #657
12 years ago
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.
12 years ago
Armin Ronacher
61d3bbf1d2
Fixed last commit and added test
12 years ago
Armin Ronacher
f1537a9d7a
Always trap proxy exceptions
12 years ago
Markus Unterwaditzer
2b30900e2c
Fix #623
12 years ago
Armin Ronacher
2af0ffaef6
Added proxies to template context
12 years ago
Armin Ronacher
1949c4a9ab
flask.g is now on the app context and not the request context
12 years ago
Armin Ronacher
2b885ce4dc
Added better error reporting for unicode errors in sessions
12 years ago