Files
loustique-home/venv/lib/python3.11/site-packages/flask/__pycache__/blueprints.cpython-311.pyc

65 lines
5.2 KiB
Plaintext
Raw Normal View History

2026-03-21 10:53:02 +01:00
<EFBFBD>
<00><><EFBFBD>i<EFBFBD><00><01><><00>ddlmZddlZddlZddlmZddlmZddl m
Z
ddl m Z ddl mZdd l mZdd
lmZejrdd lmZGd <0C>d e<0F><00>ZdS)<0E>)<01> annotationsN)<01> timedelta<74>)<01>AppGroup)<01> current_app)<01>send_from_directory)<01> Blueprint)<01>BlueprintSetupState)<01> _sentinel)<01>Responsec<01>N<00><00>eZdZdddddddefd<1F>fd<12> Zd d<15>Zd!d<17>Z d"d#d<1E>Z<07>xZS)$r N<>name<6D>str<74> import_name<6D> static_folder<65>str | os.PathLike[str] | None<6E>static_url_path<74>
str | None<6E>template_folder<65>
url_prefix<EFBFBD> subdomain<69> url_defaults<74>dict[str, t.Any] | None<6E> root_path<74> cli_group<75>return<72>Nonec <01><><00><01>t<00><00><00>||||||||| |
<EFBFBD>
<00>
t<00><00>|_|j|j_dS)N)<05>super<65>__init__r<00>clir) <0C>selfrrrrrrrrrr<00> __class__s <20><>\/home/maxime/Documents/loustiques-home/venv/lib/python3.11/site-packages/flask/blueprints.pyr zBlueprint.__init__s]<00><><00> <0E><07><07><18><18> <10> <17> <19> <1B> <1B> <16> <15> <18> <15> <15>
<EFBFBD>
<EFBFBD>
<EFBFBD>"<1C>:<3A>:<3A><04><08><1D> <09><04><08> <0A> <0A> <0A><00>filename<6D>
int | Nonec<01><><00>tjd}|<02>dSt|t<00><00>r!t |<02><00><00><00><00>S|S)anUsed by :func:`send_file` to determine the ``max_age`` cache
value for a given file path if it wasn't passed.
By default, this returns :data:`SEND_FILE_MAX_AGE_DEFAULT` from
the configuration of :data:`~flask.current_app`. This defaults
to ``None``, which tells the browser to use conditional requests
instead of a timed cache, which is usually preferable.
Note this is a duplicate of the same method in the Flask
class.
.. versionchanged:: 2.0
The default configuration is ``None`` instead of 12 hours.
.. versionadded:: 0.9
<20>SEND_FILE_MAX_AGE_DEFAULTN)r<00>config<69>
isinstancer<00>int<6E> total_seconds)r"r&<00>values r$<00>get_send_file_max_agezBlueprint.get_send_file_max_age7sM<00><00>"<1C>"<22>#><3E>?<3F><05> <10>=<3D><17>4<EFBFBD> <15>e<EFBFBD>Y<EFBFBD> '<27> '<27> .<2E><16>u<EFBFBD>*<2A>*<2A>,<2C>,<2C>-<2D>-<2D> -<2D><14> r%r c<01><><00>|jstd<01><00><00>|<00>|<01><00>}tt jt |j<00><00>||<02><02><00>S)aAThe view function used to serve files from
:attr:`static_folder`. A route is automatically registered for
this view at :attr:`static_url_path` if :attr:`static_folder` is
set.
Note this is a duplicate of the same method in the Flask
class.
.. versionadded:: 0.5
z2'static_folder' must be set to serve static_files.)<01>max_age)<08>has_static_folder<65> RuntimeErrorr/r<00>t<>castrr)r"r&r1s r$<00>send_static_filezBlueprint.send_static_fileRsa<00><00><14>%<25> U<01><1E>S<>T<>T<> T<><17>,<2C>,<2C>X<EFBFBD>6<>6<><07>"<22> <0A>F<EFBFBD>3<EFBFBD><04>*<2A> +<2B> +<2B>X<EFBFBD>w<EFBFBD>
<EFBFBD>
<EFBFBD>
<EFBFBD>
r%<00>rb<72>utf-8<>resource<63>mode<64>encoding<6E>t.IO[t.AnyStr]c<01><><00>|dvrtd<02><00><00>tj<00>|j|<01><00>}|dkrt ||<02><00>St |||<03><04><00>S)aeOpen a resource file relative to :attr:`root_path` for reading. The
blueprint-relative equivalent of the app's :meth:`~.Flask.open_resource`
method.
:param resource: Path to the resource relative to :attr:`root_path`.
:param mode: Open the file in this mode. Only reading is supported,
valid values are ``"r"`` (or ``"rt"``) and ``"rb"``.
:param encoding: Open the file with this encoding when opening in text
mode. This is ignored when opening in binary mode.
.. versionchanged:: 3.1
Added the ``encoding`` parameter.
><00>rr7<00>rtz)Resources can only be opened for reading.r7)r;)<06>
ValueError<EFBFBD>os<6F>path<74>joinr<00>open)r"r9r:r;rBs r$<00> open_resourcezBlueprint.open_resourcehsd<00><00> <10>(<28> (<28> (<28><1C>H<>I<>I<> I<><11>w<EFBFBD>|<7C>|<7C>D<EFBFBD>N<EFBFBD>H<EFBFBD>5<>5<><04> <0F>4<EFBFBD><<3C><<3C><17><04>d<EFBFBD>#<23>#<23> #<23><13>D<EFBFBD>$<24><18>2<>2<>2<>2r%)rrrrrrrrrrrrrrrrrrrrrr)r&rrr')r&rrr )r7r8)r9rr:rr;rrr<) <09>__name__<5F>
__module__<EFBFBD> __qualname__r r r/r6rE<00> __classcell__)r#s@r$r r s<><00><><00><00><00><00><00>
8<<3C>&*<2A>9=<3D>!%<25> $<24>04<30> $<24> )<29>""<22>""<22>""<22>""<22>""<22>""<22>""<22>H<15><15><15><15>6
<EFBFBD>
<EFBFBD>
<EFBFBD>
<EFBFBD>.GN<01>3<>3<>3<>3<>3<>3<>3<>3<>3r%r )<16>
__future__rrA<00>typingr4<00>datetimerr!r<00>globalsr<00>helpersr<00>sansio.blueprintsr <00>SansioBlueprintr
<00>sansio.scaffoldr <00> TYPE_CHECKING<4E>wrappersr <00>r%r$<00><module>rUs<00><01>"<22>"<22>"<22>"<22>"<22>"<22> <09> <09> <09> <09><12><12><12><12><1E><1E><1E><1E><1E><1E><19><19><19><19><19><19> <20> <20> <20> <20> <20> <20>(<28>(<28>(<28>(<28>(<28>(<28>;<3B>;<3B>;<3B>;<3B>;<3B>;<3B>I<>I<>I<>I<>I<>I<>&<26>&<26>&<26>&<26>&<26>&<26><04>?<3F>#<23>"<22>"<22>"<22>"<22>"<22>"<22>n3<>n3<>n3<>n3<>n3<><0F>n3<>n3<>n3<>n3<>n3r%