gws.base.template

Source code: gws.base.template

Submodules

Package Contents

class gws.base.template.Config(*args, **kwargs)

Bases: gws.Config

Object configuration.

mapSize: gws.UomSizeStr | None

map size

mimeTypes: list[str] | None

mime types this template can generate

pageMargin: gws.UomExtentStr | None

page margin

pageSize: gws.UomSizeStr | None

page size

subject: str = ''

template purpose

title: str = ''

template title

class gws.base.template.Object

Bases: gws.Template

Template object.

configure()

Configuration hook.

notify(tri: gws.TemplateRenderInput, message: str)
prepare_args(tri: gws.TemplateRenderInput)
props(user)

Generate a Props struct for this object.

Parameters:

user – The user for which the props should be generated.

class gws.base.template.Props(*args, **kwargs)

Bases: gws.Props

Object properties.

mapSize: gws.Size | None
pageSize: gws.Size | None
title: str