David Lord
2411707492
rework context docs
7 years ago
David Lord
310fbfcf64
revert copyright year to project start
...
add copyright header to files
7 years ago
David Lord
6637e20174
only open session if request hasn't been pushed yet
...
closes #1348
8 years ago
David Lord
b9c8c9bad1
deprecate app session methods in favor of session_interface
...
ref #1182
8 years ago
Armin Ronacher
8482ce6b8c
Improve application context popping
...
Exceptions during teardown handling will no longer leave application
contexts lingering around. This fixes #1767
9 years ago
Adrian
a4df0fbb39
Add missing return to g.setdefault
9 years ago
lord63
b55bc0baa2
Remove with_statement in flask/ctx.py
9 years ago
ThiefMaster
bbaf20de7c
Add pop and setdefault to AppCtxGlobals
10 years ago
Martijn Pieters
ec0d208bc1
Switch away from using None as default value for the exception when tearing down a context.
...
When an exception has been handled when using the request / app context in a with statement, `sys.exc_info()` will still contain the exception information even though it has been handled already. The `__exit__` methods pass in `None` for the exception value in that case, which needs to be distinguisable from the default value for the `exc` parameter. Use a dedicated singleton sentinel value instead.
10 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
defuz
ad011bc32d
docs: ``DEBUG``, ``SERVER_NAME``, ``PATH_INFO``
10 years ago
defuz
8284217593
docs: ``True``, ``False`` and ``None``
10 years ago
Petr Zemek
ebab6718f7
Unify the uses of "testsuite" vs "test suite".
...
Use "test suite", which is more prevailing in the source code.
10 years ago
Armin Ronacher
817b72d484
Removed deprecated module functionality
11 years ago
Armin Ronacher
e78961c812
Fixed a missing import
11 years ago
Armin Ronacher
52e1c383fa
Make Python 3 happy
11 years ago
Armin Ronacher
6ec83e18dc
Added a workaround for a pypy bug in context managers
11 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
Daniel Neuhäuser
a3a2f521f1
Clear exceptions when pushing a context
...
Fixes #882
11 years ago
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 .
12 years ago
Armin Ronacher
0676bb8ab5
Added appcontext_pushed and appcontext_popped signals
12 years ago
Armin Ronacher
1b40b3b573
Fixed request context preservation and teardown handler interaction.
12 years ago
Armin Ronacher
f1918093ac
Changed teardown error handling to be more reliable.
12 years ago
Armin Ronacher
ffd9296507
Close request objects if they support closing.
12 years ago
Thomas Waldmann
13cc69911c
fix typos
12 years ago
Armin Ronacher
aecc41deb8
Restore 2.5 support for the time being
12 years ago
Thomas Waldmann
6caaa8a527
automated change using python-modernize: use 'as' in except
12 years ago
Armin Ronacher
097353695e
Added flask.copy_current_request_context which simplies working with greenlets
12 years ago
Armin Ronacher
1949c4a9ab
flask.g is now on the app context and not the request context
12 years ago
Armin Ronacher
3e9f4e254b
Updated a comment that was misleading with recent flask sqlalchemy installations
13 years ago
Armin Ronacher
d5218997d9
Added flask.stream_with_context
13 years ago
Armin Ronacher
43c6a1ede8
Fixed a comment
13 years ago
Armin Ronacher
558750494f
Removed unnecessary import
13 years ago
Matt Wright
1f3e667b5d
Fix documention for `after_this_request`
13 years ago
Armin Ronacher
086348e2f2
Added after_this_request decorator.
13 years ago
Ron DuPlain
33bae1a8dc
Add Flask.request_globals_class to customize g.
...
Requested by toothr on #pocoo.
13 years ago
Armin Ronacher
bcd00e5070
Fixed a typo
13 years ago
Armin Ronacher
cb54c462b8
Pass exc explicitly to the inner context.
13 years ago
Armin Ronacher
9bed20c07c
Added documentation for appcontext and teardown handlers
13 years ago
Armin Ronacher
0207e90155
Updated docs for the app context.
13 years ago
Armin Ronacher
307d1bc4e5
Added support for basic URL generation without request contexts.
13 years ago
Armin Ronacher
47288231fe
Implemented a separate application context.
13 years ago
Armin Ronacher
a1305973bf
Fixed a typo in a comment
13 years ago
Kyle Wild
8532bd51a7
[docstring] Remove an extra `if` clause to clarify sentence
13 years ago
Kyle Wild
46651659c2
Fix a typo ("is"->"if") in the comments; clarify a bit
13 years ago
Armin Ronacher
7f4c12b335
Break up a circular dependency on shutdown
13 years ago
Armin Ronacher
c6316132b1
Context preserving is now part of Flask and not the test client. This fixes #326
14 years ago
Armin Ronacher
ee8417dac8
Late but 2010 -> 2011 in some files
14 years ago
Armin Ronacher
718ef4d699
Added an XXX to a comment to not miss removing deprecated code later
14 years ago
Michał Bartoszkiewicz
7dcf6cbc31
Don't use deprecated flask.session in flask.ctx.
14 years ago