gws.base.printer.core¶
Default printer.
Source code: gws.base.printer.core
Module Contents¶
- class gws.base.printer.core.Config(*args, **kwargs)¶
Bases:
gws.ConfigWithAccessPrint template offered to users.
- models: list[gws.ext.config.model] | None¶
Models whose fields are shown as input fields in the print dialog.
- qualityLevels: list[gws.TemplateQualityLevel] | None¶
Quality levels users can choose from.
- template: gws.ext.config.template¶
Template that renders the print output.
- class gws.base.printer.core.Object¶
Bases:
gws.PrinterDefault printer.
- configure()¶
Configuration hook.
Called when the node is initialized. Raising an exception here aborts the creation of the node.
- props(user)¶
Generate a
Propsstruct for this object.Do not call this method directly, use
gws.props_ofinstead, which also checks permissions.- Parameters:
user – The user for which the props should be generated.
- Returns:
A
Propsobject or a dict. Nested objects are converted to props as well.