MCPcopy
hub / github.com/pallets/flask / blueprints

Method blueprints

src/flask/wrappers.py:181–195  ·  view source on GitHub ↗

The registered names of the current blueprint upwards through parent blueprints. This will be an empty list if there is no current blueprint, or if URL matching failed. .. versionadded:: 2.0.1

(self)

Source from the content-addressed store, hash-verified

179
180 @property
181 def blueprints(self) -> list[str]:
182 """The registered names of the current blueprint upwards through
183 parent blueprints.
184
185 This will be an empty list if there is no current blueprint, or
186 if URL matching failed.
187
188 .. versionadded:: 2.0.1
189 """
190 name = self.blueprint
191
192 if name is None:
193 return []
194
195 return _split_blueprint_path(name)
196
197 def _load_form_data(self) -> None:
198 super()._load_form_data()

Callers

nothing calls this directly

Calls 1

_split_blueprint_pathFunction · 0.85

Tested by

no test coverage detected