Files
proxmox/venv/lib/python3.12/site-packages/flask/__pycache__/blueprints.cpython-312.pyc

61 lines
4.9 KiB
Plaintext
Raw Normal View History

<EFBFBD>
<0E>Hi<48><00><01><><00>ddlmZddlZddlZddlmZddlmZddl m
Z
ddl m Z ddl mZdd l mZdd
lmZej&rdd lmZGd <0C>d e<0F>Zy)<0E>)<01> annotationsN)<01> timedelta<74>)<01>AppGroup)<01> current_app)<01>send_from_directory)<01> Blueprint)<01>BlueprintSetupState)<01> _sentinel)<01>Responsec<01><><00><00>eZdZdddddddef d<06>fd<02> Zdd<03>Zdd<04>Z d d
d<05>Z<07>xZS) r Nc <01><><00><01>t<00> |<00>||||||||| |
<EFBFBD>
t<00>|_|j|j_y)N)<05>super<65>__init__r<00>cli<6C>name) <0C>selfr<00> import_name<6D> static_folder<65>static_url_path<74>template_folder<65>
url_prefix<EFBFBD> subdomain<69> url_defaults<74> root_path<74> cli_group<75> __class__s <20><>R/home/intlc/projects/proxmox/venv/lib/python3.12/site-packages/flask/blueprints.pyrzBlueprint.__init__sL<00><><00> <0E><07><18> <10> <17> <19> <1B> <1B> <16> <15> <18> <15> <15>
<EFBFBD>"<1C>:<3A><04><08><1D> <09> <09><04><08><08> <0A>c<01><><00>tjd}|<02>yt|t<00>rt |j <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<00>filename<6D>values r<00>get_send_file_max_agezBlueprint.get_send_file_max_age7s@<00><00>"<1C>"<22>"<22>#><3E>?<3F><05> <10>=<3D><17> <15>e<EFBFBD>Y<EFBFBD> '<27><16>u<EFBFBD>*<2A>*<2A>,<2C>-<2D> -<2D><14> rc<01><><00>|js td<01><00>|j|<01>}tt j
t |j<00>||<02><02>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<>cast<73>strr)rr&r*s r<00>send_static_filezBlueprint.send_static_fileRsP<00><00><14>%<25>%<25><1E>S<>T<> T<><17>,<2C>,<2C>X<EFBFBD>6<><07>"<22> <0A>F<EFBFBD>F<EFBFBD>3<EFBFBD><04>*<2A>*<2A> +<2B>X<EFBFBD>w<EFBFBD>
<EFBFBD>
rc<01><><00>|dvr td<02><00>tjj|j|<01>}|dk(r t ||<02>St |||<03><04>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>r<>rb<72>rtz)Resources can only be opened for reading.r3)<01>encoding)<06>
ValueError<EFBFBD>os<6F>path<74>joinr<00>open)r<00>resource<63>moder5r8s r<00> open_resourcezBlueprint.open_resourcehsT<00><00> <10>(<28> (<28><1C>H<>I<> I<><11>w<EFBFBD>w<EFBFBD>|<7C>|<7C>D<EFBFBD>N<EFBFBD>N<EFBFBD>H<EFBFBD>5<><04> <0F>4<EFBFBD><<3C><17><04>d<EFBFBD>#<23> #<23><13>D<EFBFBD>$<24><18>2<>2r)rr/rr/r<00>str | os.PathLike[str] | Noner<00>
str | Nonerr>rr?rr?rzdict[str, t.Any] | Nonerr?rr?<00>return<72>None)r&r?r@z
int | None)r&r/r@r )r3zutf-8)r;r/r<r/r5r?r@zt.IO[t.AnyStr]) <09>__name__<5F>
__module__<EFBFBD> __qualname__r rr(r0r=<00> __classcell__)rs@rr r s<><00><><00>
8<<3C>&*<2A>9=<3D>!%<25> $<24>04<30> $<24> )<29>""<22><11>""<22><19>""<22>5<> ""<22>
$<24> ""<22> 7<> ""<22><1F>""<22><1E>""<22>.<2E>""<22><1E>""<22><1E>""<22>
<0E>""<22>H<15>6
<EFBFBD>.GN<01>3<><1B>3<>#&<26>3<>9C<39>3<> <17>3rr )<16>
__future__rr7<00>typingr-<00>datetimerrr<00>globalsr<00>helpersr<00>sansio.blueprintsr <00>SansioBlueprintr
<00>sansio.scaffoldr <00> TYPE_CHECKING<4E>wrappersr <00>rr<00><module>rQs;<00><01>"<22> <09><12><1E><19> <20>(<28>;<3B>I<>&<26><04>?<3F>?<3F>"<22>n3<><0F>n3r