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
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
Armin Ronacher
8339cb3508
Added support for unicode json dumping. This fixes #535
12 years ago
Mitchell Peabody
275f830c83
There was a duplicated call to url_adapter.build(...)
...
try:
rv = url_adapter.build(endpoint, values, method=method,
force_external=external)
except BuildError, error:
# We need to inject the values again so that the app callback can
# deal with that sort of stuff.
values['_external'] = external
values['_anchor'] = anchor
values['_method'] = method
return appctx.app.handle_url_build_error(error, endpoint, values)
rv = url_adapter.build(endpoint, values, method=method,
force_external=external)
If no exception was raised for url_adapter.build(...) then the same method call
would be made after the try...except block. This is unnecessary.
12 years ago
Mitchell Peabody
a15c6c569a
The builder on github is using python 2.5, the views.py testsuite uses the with
...
statement, and thus flask/testsuite/views.py requires
from __future__ import with_statement
at the beginning.
12 years ago
Armin Ronacher
3e9f4e254b
Updated a comment that was misleading with recent flask sqlalchemy installations
12 years ago
Armin Ronacher
f34c028125
Added template tests and made config a true global
12 years ago
Armin Ronacher
5e88c8184d
Removed deprecated and awkward flask.session module
12 years ago
Armin Ronacher
05c6502cbd
Let json.* work even without app on the stack and added tests
12 years ago
Armin Ronacher
b146d8277a
Added wrapper module around simplejson/json for much simplified customization.
12 years ago
Armin Ronacher
301e244df3
Consistent use of encoding naming
12 years ago
Armin Ronacher
3afcbf160e
Extra safety for safe_join. Does not look exploitable but better safe than sorry. Fixes #501
12 years ago
Armin Ronacher
661ee54bc2
Raise exceptions if a function is overridden by a new endpoint. This fixes #570
12 years ago
Armin Ronacher
f8b6033a3b
Added a workaround for samefile. This fixes #600
12 years ago
Armin Ronacher
c4f2075f4c
tojson no longer escapes script blocks in HTML5 parsers. Fixed #605
12 years ago
Armin Ronacher
3bec75d230
Set the content-length header for sendfile. Fixes #447
12 years ago
Armin Ronacher
de5038f2fb
Added total_seconds() helper for pythons before 2.7
12 years ago
Armin Ronacher
7f87091474
Added a missing exposed import. This fixes #575
12 years ago
Armin Ronacher
f034d8d345
Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332
12 years ago
Armin Ronacher
4f1cb42123
make_test_environ_builder when used with subdomains was not working correctly, now it uses urlparse module for detecting full URL and changing path and base_url correctly
12 years ago
Armin Ronacher
261c4a6aee
Updated documentation for the new sessions
12 years ago
Ryan Macy
7233a3e0a2
Fixed typo occours to occurs
...
Fixed a typo in the docstring of handle_exception. Was occours, now occurs.
12 years ago
Ralph Bean
9ecbd20286
Update flask/templating.py
...
Fixed a typo in the docstring.
12 years ago
Finbarr O'Callaghan
e93447f25e
actually to actual, again, fixed spelling, not grammar
13 years ago
Finbarr O'Callaghan
48f7cdd016
various typo fixes
13 years ago
Armin Ronacher
fe85970665
Various improvements in regards to the itsdangerous usage, bumped to 0.17
13 years ago
Armin Ronacher
c3d38a21c6
Removed json_available hack
13 years ago
Armin Ronacher
3f82d1b68e
Switch to itsdangerous
13 years ago
Armin Ronacher
b879193481
Set current dev version number to 0.10
13 years ago
Armin Ronacher
4df3bf2058
Implemented experimental JSON based sessions
13 years ago
Priit Laes
e3b3e05052
Docs: Fix docstring formatting
13 years ago
Priit Laes
ed1619adad
Docs: Mention SERVER_NAME in the url_for() docstring
13 years ago
Paul McMillan
20a542fc8a
docstring typo
13 years ago