Skip to main content

Accessing Information on the Rendering-Job

Using the priintcloud-library, information on the rendering-job can be retrieved. Typically data like ticket-id, project-name, username, etc. might be retrieved for logging. It might also be necessary to retrieve custom parameters from the renderpdf-request, that are needed for the rendering-process.

priintcloud_lib = comet.pyImport('[xml]/library/framework/priintcloud.py')
priintcloud = priintcloud_lib.PriintCloud()
LOGGER.wlog(priintcloud)
LOGGER.wlog(f"Ticket-ID: {priintcloud.ticket}")
LOGGER.wlog(f"Custom-Parameter: {priintcloud.env.get('foo')}")

===priint:cloud META===

Time: 2025-02-11 10:33:23

OS-Context: home=, host=

Comet: Version 5.0, Revision 36072, System 2

Script: (priintcloud.py)

Tenant: tenantname

Project: projectname

User: username

Ticket: ticketid

=======================

Ticket-ID: ab824aso9s84t3093g4f79

Custom-Parameter: bar

See here for more information: priint:cloud-library