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)
| 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: |
no outgoing calls
no test coverage detected