gws.base.template.core

Source code: gws.base.template.core

Module Contents

class gws.base.template.core.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

gws.base.template.core.DEFAULT_MAP_SIZE = (50, 50)
gws.base.template.core.DEFAULT_PAGE_SIZE = (210, 297)
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