comet.idtype¶
The comet.idtype module provides factory functions for creating CIDType
objects aswell as helper functions for processing unbound ID values.
See also
- Class
CIDType
Instances of IDType objects
Methods¶
- comet.idtype.create(ID1: int, ID2: int = 0, ID3: int = 0, stringID: str = '') CIDType ¶
Create a new
CIDType
object from the provided values- Parameters:
- Returns:
The new ID object
- Return type:
- Raises:
TypeError – When parameter types are invalid
- Available:
InDesign® comet_pdf® Illustrator®
- CScript:
- Examples:
Create an IDType
- comet.idtype.getRecordID(stringID: str) str ¶
Get the RecordID part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter stringID is empty
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- Examples:
Get the recordID part of a string ID.
- comet.idtype.getGroupID(stringID: str) str ¶
Get the GroupID part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter stringID is empty
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- Examples:
Get the group ID part of a string ID.
- comet.idtype.getEntityID(stringID: str) str ¶
Get the EntityID part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter stringID is empty
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- Examples:
Get the entity ID part of a string ID.
- comet.idtype.getEntityClass(stringID: str) str ¶
Get the EntityClass part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter stringID is empty
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- Examples:
Get the entity class part of a string ID.
- comet.idtype.getParentRecordID(stringID: str) str ¶
Get the Parent RecordID part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter stringID is empty
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- Examples:
Get the parent record ID part of a string ID.
- comet.idtype.getParentGroupID(stringID: str) str ¶
Get the Parent GroupID part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter stringID is empty
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- Examples:
Get the parent group ID part of a string ID.
- comet.idtype.getParentEntityID(stringID: str) str ¶
Get the Parent EntityID part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter stringID is empty
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- Examples:
Get the parent entity ID part of a string ID.
- comet.idtype.getParentEntityClass(stringID: str) str ¶
Get the Parent EntityClass part of a StringID.
- Returns:
StringID in the PublishingServer schema
- Return type:
- Raises:
TypeError – When parameter types are invalid
ValueError – When parameter stringID is empty
- Available:
InDesign® comet_pdf® Illustrator®
- See also:
- CScript:
- Examples:
Get the parent entity class part of a string ID.