add_app_template_filter(self, f: Callable[..., Any], name: Optional[str] = None) -> None |
Register a custom template filter, available application wide. Like [extrait de add_app_template_filter.__doc__] |
add_app_template_global(self, f: Callable[..., Any], name: Optional[str] = None) -> None |
Register a custom template global, available application wide. Like [extrait de add_app_template_global.__doc__] |
add_app_template_test(self, f: Callable[..., bool], name: Optional[str] = None) -> None |
Register a custom template test, available application wide. Like [extrait de add_app_template_test.__doc__] |
add_url_rule(self, rule: str, endpoint: Optional[str] = None, view_func: Optional[Callable] = None, provide_automatic_options: Optional[bool] = None, **options: Any) -> None |
Like :meth:`Flask.add_url_rule` but for a blueprint. The endpoint for [extrait de add_url_rule.__doc__] |
after_app_request(self, f: Callable[[ForwardRef('Response')], ForwardRef('Response')]) -> Callable[[ForwardRef('Response')], ForwardRef('Response')] |
Like :meth:`Flask.after_request` but for a blueprint. Such a function [extrait de after_app_request.__doc__] |
app_context_processor(self, f: Callable[[], Dict[str, Any]]) -> Callable[[], Dict[str, Any]] |
Like :meth:`Flask.context_processor` but for a blueprint. Such a [extrait de app_context_processor.__doc__] |
app_errorhandler(self, code: Union[Type[Exception], int]) -> Callable |
Like :meth:`Flask.errorhandler` but for a blueprint. This [extrait de app_errorhandler.__doc__] |
app_template_filter(self, name: Optional[str] = None) -> Callable[[Callable[..., Any]], Callable[..., Any]] |
Register a custom template filter, available application wide. Like [extrait de app_template_filter.__doc__] |
app_template_global(self, name: Optional[str] = None) -> Callable[[Callable[..., Any]], Callable[..., Any]] |
Register a custom template global, available application wide. Like [extrait de app_template_global.__doc__] |
app_template_test(self, name: Optional[str] = None) -> Callable[[Callable[..., bool]], Callable[..., bool]] |
Register a custom template test, available application wide. Like [extrait de app_template_test.__doc__] |
app_url_defaults(self, f: Callable[[str, dict], NoneType]) -> Callable[[str, dict], NoneType] |
Same as :meth:`url_defaults` but application wide. [extrait de app_url_defaults.__doc__] |
app_url_value_preprocessor(self, f: Callable[[Optional[str], Optional[dict]], NoneType]) -> Callable[[Optional[str], Optional[dict]], NoneType] |
Same as :meth:`url_value_preprocessor` but application wide. [extrait de app_url_value_preprocessor.__doc__] |
before_app_first_request(self, f: Callable[[], NoneType]) -> Callable[[], NoneType] |
Like :meth:`Flask.before_first_request`. Such a function is [extrait de before_app_first_request.__doc__] |
before_app_request(self, f: Callable[[], Union[ForwardRef('Response'), ~AnyStr, Dict[str, Any], Generator[~AnyStr, NoneType, NoneType], Tuple[Union[ForwardRef('Response'), ~AnyStr, Dict[str, Any], Generator[~AnyStr, NoneType, NoneType]], Union[ForwardRef('Headers'), Dict[str, Union[str, List[str], Tuple[str, ...]]], List[Tuple[str, Union[str, List[str], Tuple[str, ...]]]]]], Tuple[Union[ForwardRef('Response'), ~AnyStr, Dict[str, Any], Generator[~AnyStr, NoneType, NoneType]], int], Tuple[Union[ForwardRef('Response'), ~AnyStr, Dict[str, Any], Generator[~AnyStr, NoneType, NoneType]], int, Union[ForwardRef('Headers'), Dict[str, Union[str, List[str], Tuple[str, ...]]], List[Tuple[str, Union[str, List[str], Tuple[str, ...]]]]]], ForwardRef('WSGIApplication'), NoneType]]) -> Callable[[], Union[ForwardRef('Response'), ~AnyStr, Dict[str, Any], Generator[~AnyStr, NoneType, NoneType], Tuple[Union[ForwardRef('Response'), ~AnyStr, Dict[str, Any], Generator[~AnyStr, NoneType, NoneType]], Union[ForwardRef('Headers'), Dict[str, Union[str, List[str], Tuple[str, ...]]], List[Tuple[str, Union[str, List[str], Tuple[str, ...]]]]]], Tuple[Union[ForwardRef('Response'), ~AnyStr, Dict[str, Any], Generator[~AnyStr, NoneType, NoneType]], int], Tuple[Union[ForwardRef('Response'), ~AnyStr, Dict[str, Any], Generator[~AnyStr, NoneType, NoneType]], int, Union[ForwardRef('Headers'), Dict[str, Union[str, List[str], Tuple[str, ...]]], List[Tuple[str, Union[str, List[str], Tuple[str, ...]]]]]], ForwardRef('WSGIApplication'), NoneType]] |
Like :meth:`Flask.before_request`. Such a function is executed [extrait de before_app_request.__doc__] |
make_setup_state(self, app: 'Flask', options: dict, first_registration: bool = False) -> flask.blueprints.BlueprintSetupState |
Creates an instance of :meth:`~flask.blueprints.BlueprintSetupState` [extrait de make_setup_state.__doc__] |
record(self, func: Callable) -> None |
Registers a function that is called when the blueprint is [extrait de record.__doc__] |
record_once(self, func: Callable) -> None |
Works like :meth:`record` but wraps the function in another [extrait de record_once.__doc__] |
register(self, app: 'Flask', options: dict) -> None |
Called by :meth:`Flask.register_blueprint` to register all [extrait de register.__doc__] |
register_blueprint(self, blueprint: 'Blueprint', **options: Any) -> None |
Register a :class:`~flask.Blueprint` on this blueprint. Keyword [extrait de register_blueprint.__doc__] |
teardown_app_request(self, f: Callable[[Optional[BaseException]], NoneType]) -> Callable[[Optional[BaseException]], NoneType] |
Like :meth:`Flask.teardown_request` but for a blueprint. Such a [extrait de teardown_app_request.__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 :