deprecate config attributes

This commit is contained in:
David Lord 2022-08-01 16:53:15 -07:00
parent 98ca00d545
commit bfdd37110c
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
8 changed files with 154 additions and 57 deletions

View file

@ -125,10 +125,9 @@ implementation that Flask is using.
.. admonition:: Notice
The ``PERMANENT_SESSION_LIFETIME`` config key can also be an integer
starting with Flask 0.8. Either catch this down yourself or use
the :attr:`~flask.Flask.permanent_session_lifetime` attribute on the
app which converts the result to an integer automatically.
The :data:`PERMANENT_SESSION_LIFETIME` config can be an integer or ``timedelta``.
The :attr:`~flask.Flask.permanent_session_lifetime` attribute is always a
``timedelta``.
Test Client