comet.CIDType

class comet.CIDType

A CIDType object is an object comprised of three int values and a str value forming the so called RecordID.

Several other helper functions are provided for extracting data from the str part of the ID when connected to a priint:suite publishing server.

See also

Module idtype

Factory functions for CIDType objects and helpers for extracting values.

Methods

CIDType.getID()

Get the first number of this ID

Returns

First number ID

Return type

int

Available

CScript

idtype::id

CIDType.getID2()

Get the second number of this ID

Returns

Second number ID

Return type

int

Available

CScript

idtype::id2

CIDType.getID3()

Get the third number of this ID

Returns

Third number ID

Return type

int

Available

CScript

idtype::id3

CIDType.getStringID()

Get the string ID of this ID

Returns

The string ID

Return type

str

Available

CScript

idtype::stringid

CIDType.getValues()

This is a convenience function for returning all four ID values

Returns

The ID as (id1, id2, id3, stringID)

Return type

tuple[int, int, int, str]

Available

CScript
CIDType.setID(ID)

Set the first number of this ID

Parameters

ID (int) – The value to set

Return type

None

Available

CScript

idtype::set_id

CIDType.setID2(ID)

Set the second number of this ID

Parameters

ID (int) – The value to set

Return type

None

Available

CScript

idtype::set_id2

CIDType.setID3(ID)

Set the third number of this ID

Parameters

ID (int) – The value to set

Return type

None

Available

CScript

idtype::set_id3

CIDType.setStringID(ID)

Set the string ID of this ID

Parameters

ID (str) – The value to set

Return type

None

Available

CScript

idtype::set_stringid

CIDType.setValues(values)

This is a convenience function for setting all four ID values

Parameters

values (tuple[int, int, int, str]) – The values to set.

Return type

None

Raises

TypeError – When parameter types are invalid

Available

CScript
CIDType.getRecordID()

Get the RecordID part of a StringID.

Returns

Record ID part of the string ID

Return type

str

Available

See also

idtype.getRecordID()

CScript

idtype::record_id

CIDType.getGroupID()

Get the GroupID part of a StringID.

Returns

Group ID part of the string ID

Return type

str

Available

See also

idtype.getGroupID()

CScript

idtype::group_id

CIDType.getEntityID()

Get the EntityID part of a StringID.

Returns

StringID in the PublishingServer schema

Return type

str

Available

See also

idtype.getEntityID()

CScript

idtype::entity_id

CIDType.getEntityClass()

Get the EntityClass part of a StringID.

Returns

Entity class part of the string ID

Return type

str

Available

See also

idtype.getEntityClass()

CScript

idtype::entity_class

CIDType.getParentRecordID()

Get the Parent RecordID part of a StringID.

Returns

Parent record ID part of the string ID

Return type

str

Available

See also

idtype.getParentRecordID()

CScript

idtype::parent_record_id

CIDType.getParentGroupID()

Get the Parent GroupID part of a StringID.

Returns

Parent group ID part of the string ID

Return type

str

Available

See also

idtype.getParentGroupID()

CScript

idtype::parent_group_id

CIDType.getParentEntityID()

Get the Parent EntityID part of a StringID.

Returns

Parent entity ID part of the string ID

Return type

str

Available

See also

idtype.getParentEntityID()

CScript

idtype::parent_entity_id

CIDType.getParentEntityClass()

Get the Parent EntityClass part of a StringID.

Returns

Parent entity class part of the string ID

Return type

str

Available

See also

idtype.getParentEntityClass()

CScript

idtype::parent_entity_class