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:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getID2()¶
Get the second number of this ID
- Returns:
Second number ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getID3()¶
Get the third number of this ID
- Returns:
Third number ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getStringID()¶
Get the string ID of this ID
- Returns:
The string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getValues()¶
This is a convenience function for returning all four ID values
- Returns:
The ID as (id1, id2, id3, stringID)
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setID(ID)¶
Set the first number of this ID
- Parameters:
ID (int) – The value to set
- Return type:
None
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setID2(ID)¶
Set the second number of this ID
- Parameters:
ID (int) – The value to set
- Return type:
None
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setID3(ID)¶
Set the third number of this ID
- Parameters:
ID (int) – The value to set
- Return type:
None
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setStringID(ID)¶
Set the string ID of this ID
- Parameters:
ID (str) – The value to set
- Return type:
None
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.setValues(values)¶
This is a convenience function for setting all four ID values
- Parameters:
- Return type:
None
- Raises:
TypeError – When parameter types are invalid
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- CIDType.getRecordID()¶
Get the RecordID part of a StringID.
- Returns:
Record ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getGroupID()¶
Get the GroupID part of a StringID.
- Returns:
Group ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getEntityID()¶
Get the EntityID part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getEntityClass()¶
Get the EntityClass part of a StringID.
- Returns:
Entity class part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getParentRecordID()¶
Get the Parent RecordID part of a StringID.
- Returns:
Parent record ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getParentGroupID()¶
Get the Parent GroupID part of a StringID.
- Returns:
Parent group ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getParentEntityID()¶
Get the Parent EntityID part of a StringID.
- Returns:
Parent entity ID part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- CIDType.getParentEntityClass()¶
Get the Parent EntityClass part of a StringID.
- Returns:
Parent entity class part of the string ID
- Return type:
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript: