dazzler.pages package¶
Preconfigured pages to add to dazzler apps.
Submodules¶
dazzler.pages.user_admin module¶
Base Dazzler user administration page.
Implementations:
PostgresUserAdminPage
- class dazzler.pages.user_admin.AdminRole(role_name, description)[source]¶
Bases:
tuple
- description: Optional[str]¶
Alias for field number 1
- role_name: str¶
Alias for field number 0
- class dazzler.pages.user_admin.AdminUser(username, active, roles)[source]¶
Bases:
tuple
- active: bool¶
Alias for field number 1
- roles: List[str]¶
Alias for field number 2
- username: str¶
Alias for field number 0
- class dazzler.pages.user_admin.UserAdminPage(app, name='user-admin', layout=None, authorizations=('admin',), users_per_page=10, users_page_displayed=5, packages=None, url='/auth/admin', **kwargs)[source]¶
Bases:
dazzler.system._page.Page
- __init__(app, name='user-admin', layout=None, authorizations=('admin',), users_per_page=10, users_page_displayed=5, packages=None, url='/auth/admin', **kwargs)[source]¶
- Parameters
name – Unique name for the page, usually give __name__.
layout – Root component or function returning a Component. In the case of a function, the request will be None on setup.
url – Url, default to
/name
.bindings – Bindings of component aspects for this page.
routes – Additional routes to register with this page.
requirements – List of requirements to
title – Title of the page.
lang – lang attribute of the html tag.
header – Static header to include as first child on the page.
footer – Static footer to include as last child on the page.
favicon – Url to favicon for the page.
meta_tags – Meta tags of the page.
packages – Packages list to use on the page instead of the whole registry.
require_login – Page requires that user is logged in.
electron_window – Settings for the electron window like size.
authorizations – Rules for authorization.