class documentation
class BlueprintSetupState: (source)
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.
Method | __init__ |
Undocumented |
Method | add |
A helper method to register a rule (and optionally a view function) to the application. The endpoint is automatically prefixed with the blueprint's name. |
Instance Variable | app |
Undocumented |
Instance Variable | blueprint |
Undocumented |
Instance Variable | first |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | name |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | subdomain |
Undocumented |
Instance Variable | url |
Undocumented |
Instance Variable | url |
Undocumented |
def __init__(self, blueprint:
Blueprint
, app: Flask
, options: t.Any
, first_registration: bool
):
(source)
¶
Undocumented
def add_url_rule(self, rule:
str
, endpoint: t.Optional[ str]
= None, view_func: t.Optional[ t.Callable]
= None, **options: t.Any
):
(source)
¶
A helper method to register a rule (and optionally a view function) to the application. The endpoint is automatically prefixed with the blueprint's name.