Skip to content

kamihi.web.views.user_view ⚓︎

User view module for Kamihi web application.

License

MIT

Classes:

Name Description
UserView

UserView is a custom view for managing users in the admin interface.

UserView ⚓︎

UserView(*args, hooks: dict = None, **kwargs)

Bases: BaseView

UserView is a custom view for managing users in the admin interface.

Source code in src/kamihi/web/views/base_view.py
42
43
44
45
46
47
48
49
50
51
52
53
def __init__(self, *args, hooks: dict = None, **kwargs) -> None:  # noqa: ANN002, ANN003
    """
    Initialize the HooksView with hooks.

    Args:
        *args: Positional arguments.
        hooks (dict): A dictionary of hooks for different events.
        **kwargs: Keyword arguments.

    """
    super().__init__(*args, **kwargs)
    self.hooks = hooks or {}