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

Method record

src/flask/sansio/blueprints.py:224–230  ·  view source on GitHub ↗

Registers a function that is called when the blueprint is registered on the application. This function is called with the state as argument as returned by the :meth:`make_setup_state` method.

(self, func: DeferredSetupFunction)

Source from the content-addressed store, hash-verified

222
223 @setupmethod
224 def record(self, func: DeferredSetupFunction) -> None:
225 """Registers a function that is called when the blueprint is
226 registered on the application. This function is called with the
227 state as argument as returned by the :meth:`make_setup_state`
228 method.
229 """
230 self.deferred_functions.append(func)
231
232 @setupmethod
233 def record_once(self, func: DeferredSetupFunction) -> None:

Callers 2

record_onceMethod · 0.95
add_url_ruleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected