builtins.object BlueprintSetupState
class BlueprintSetupState(builtins.object):
Temporary holder object for registering a blueprint with the application. An instance of this class is created by the :meth:`~flask.Blueprint.make_setup_state` method and later passed to all register callback functions.
Signature du constructeur | Description |
---|---|
__init__(self, blueprint: 'Blueprint', app: 'Flask', options: Any, first_registration: bool) -> None |
Signature de la méthode | Description |
---|---|
add_url_rule(self, rule: str, endpoint: Optional[str] = None, view_func: Optional[Callable] = None, **options: Any) -> None | A helper method to register a rule (and optionally a view function) [extrait de add_url_rule.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :