gws.base.template.core

Source code: gws.base.template.core

Module Contents

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

Bases: gws.ConfigWithAccess

Template configuration.

mapSize: gws.UomSizeStr | None

Map size.

mimeTypes: list[gws.MimeType] | 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.

gws.base.template.core.DEFAULT_MAP_SIZE
gws.base.template.core.DEFAULT_PAGE_SIZE
class gws.base.template.core.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.core.Props(*args, **kwargs)

Bases: gws.Props

Object properties.

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