Changelog

The priint:comet Python API is now considered stable. This changelog will be removed in the future. All changes are now part of the main changelogs:

Legacy version history

This section contains all changes made during the beta phase by version to the priint:comet Python API. Each release can contain two sections:

Compatible changes

These changes extend functionality or fix errors and can generally be considered compatible with existing project implementations.

There is usually no need to change existing code for these changes to take effect.

Incompatible changes:

These changes require changes to existing project implementations or will generally cause existing scripts to fail or behave differently.

These changes usually are fixes to severe errors or restructuring of the priint:comet Python API.

R33520

Compatible changes

R33466

Compatible changes

  • Fixes:
    • Cannot add arguments to comet.placeholder.loadServer (TW #2685384)

R32862

Compatible changes

R32762

Compatible changes

  • New functions:
  • Fixes:
    • frame placeholder actions always error out with syntax errors.

    • placeholder actions error out when function variables are used which only have default values.

    • wlog() does not respect extened logging configuration.

R32735

Compatible changes

R32585

No changes

R32423

Compatible changes

  • Loading product pool entries is now supported. All environment variables for the context kContextProductPoolEntries are now implemented.

  • CFrame.setImage() now has an additional options parameter for selecting PDF pages and cropboxes when inserting a PDF

Incompatible changes

R32286

Compatible changes

Incompatible changes

R32141

Compatible changes

R32064

Compatible changes

R31940

Compatible changes

R31859

Compatible changes

Incompatible changes

R31755

No changes

R31701

Compatible changes

Incompatible changes

  • comet.runCScript() items parameter completely reworked to support a wide range of Python types in CScript

  • CFrame.getTemplate() now has an additional parameter whether to determine the template name

  • CPage.snapshot() has been removed

  • CFrame.getHasOverset() is now CFrame.hasOverset()

  • comet.pyImport() now always requires a file extension when trying to import a file

R31400

Compatible changes

R31313

Compatible changes

R31147

Compatible changes

  • Fixes:
    • Fixed an issue on Mac systems where sometimes int parameters would not be properly filled

R30871

Incompatible changes

R30779

Compatible changes

Incompatible changes

  • Other changes:
    • comet.FrameTypes is now Pageitem types

    • CFrame.hasOverset() is now CFrame.getHasOverset()

    • CFrame.isInline() is now CFrame.getIsInline()

    • CDocument.getCellSize() parameter insetRelative renamed to areaType, type changed from bool to int

    • CDocument.getCellBox() parameter relativeTo renamed to areaType, valid value range changed

    • print() is no longer redirected to the comet logfile since that causes crashes on M1 Macs

R30683

Incompatible changes

R30603

Compatible changes

Incompatible changes

R30464

Compatible changes

Incompatible changes

R30323

Compatible changes
Incompatible changes
R30121

Compatible changes
R30009

Compatible changes
R29607

Compatible changes
Incompatible changes
  • Removed all constants from excel module and moved them to comet module

  • Removed comet.getHost() (moved to host.getType())

  • Removed sync module. Functionality can be achieved using comet.setOutput()

  • Removed system module (moved functions to comet and host):
    • Removed system.getApplicationPath()

    • Removed system.getPluginPath()

    • Removed system.getRevision()

    • Removed system.getCometVersion()

  • Static functions in classes have been removed again and moved to their appropriate modules

  • Moved comet.selectFile() to dialog.selectFile()

  • Moved comet.selectFolder() to dialog.selectFolder()

R29546

Compatible changes
Incompatible changes
  • Removed constants from table module. Replaced by constants in comet module, e.g. Row types

  • The following modules are deprecated and will be removed (already gone from documentation): dialog, document, element, idtype, layoutrule, link, page, product, rect, table .

    All functionality is now moved to static functions in the appropriate classes

  • comet.setGlobal is now named comet.setOutput()

  • Removed CParameter.getAll()

  • Removed CParameter.get()

  • Removed CParameter.createFromXML()

  • Removed CParameter.toXML()

  • Removed CPlanning.createFromXML()

  • Removed CPlanning.toXML()

  • Removed CPublication.get()

  • Removed CPublication.createFromXML()

  • Removed CPublication.toXML()

  • Removed CPublicationType.getAll()

  • Removed CPublicationType.createFromXML()

  • Removed CPublicationType.toXML()

  • Removed CWorkflowStatus.getAll()

  • Removed CWorkflowStatus.get()

  • Removed CWorkflowStatus.getAvailable()

  • Removed CWorkflowStatus.createFromXML()

  • Removed CWorkflowStatus.toXML()

R29355

Compatible changes
Incompatible changes
  • Removed link sorting constants from idtype module. Replaced by Link sorting

  • Removed first link selector constants from idtype module. Replaced by Link first selectors

R29302

Compatible changes

R29218

Compatible changes

Incompatible changes

R29068

Compatible changes

Incompatible changes

R28940

Compatible changes

Incompatible changes

  • Renamed module layoutRule to layoutrule (lower case r)

  • Moved Link types constants from CLink to comet module

R28889

Compatible changes

R28810

Compatible changes

Incompatible changes

  • Removed CDocument.getPageCount (was not implemented)

R28726/28730/28732

Compatible changes

Incompatible changes

R28703/28704

Compatible changes

Incompatible changes

  • Fixed CFrame.getBBox() returning wrong data type (tuple instead of CRect)