SealSkin

Branding

The brand the web app wears, as branding/branding.yml keeps it.

Attributes

attributenamestr
= Field(default='SealSkin', min_length=1, max_length=60)

The product name, which stands wherever the interface would say SealSkin.

attributelogo_linkstr
= Field(default=PROJECT_URL, max_length=2000)

Where the logo leads; empty for nowhere.

attributeaccentstr
= Field(default='', pattern='^(#[0-9a-fA-F]{6})?$')

The accent color as #rrggbb, or empty for the default violet.

attributeappslist[BrandApp]
= Field(default_factory=default_brand_apps, max_length=4)

Where the companion apps are had, one entry per client, shown on the sign-in page and with the application keys.

attributewallpaper_fitstr
= Field(default='cover', pattern='^(cover|contain|stretch|center)$')

How the wallpaper sits on the home page.

attributewallpaper_blurint
= Field(default=0, ge=0, le=24)

Pixels of blur over the wallpaper.

attributewallpaper_dimint
= Field(default=30, ge=0, le=90)

Percent the wallpaper is darkened.

attributewallpaper_forcedbool
= False

Every user sees the wallpaper, and the page's own customization is withheld.

attributelinkslist[BrandLink]
= Field(default_factory=list, max_length=40)

Links the home page shows beside the applications.

Functions

func_stripped(value) -> str

Trim the text fields.

paramvaluestr

Returns

str
func_link_shape(value) -> str

Allow an http or https address, or none.

paramvaluestr

Returns

str
func_every_app_once(value) -> list[BrandApp]

Keep one entry per client, in the stores' order, the official address standing in for an empty one.

paramvaluelist[BrandApp]

Returns

list[app.models.BrandApp]