gws.base.template
¶
Source code: gws.base.template
Submodules¶
Package Contents¶
- class gws.base.template.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.
- 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.