ObjectSpaceState

ObjectSpaceState

Overview

ObjectSpaceState is a class in Aspose.Note for Python.

ObjectSpaceState.get_latest_root(role, context_id) returns the latest root GUID for the given role and context, or None if not found.

ObjectSpaceState is an enumeration in Aspose.Note for Python that describes the synchronisation state of an object space within a OneNote package. It inherits from Python’s Enum base class and provides named, symbolic constants for use with Aspose.Note API methods and properties. Values: various constants.

Properties

NameTypeAccessDescription
gosidExtendedGUIDReadHolds the global object store identifier as an ExtendedGUID
root_rolesdict[int, ExtendedGUID]ReadMaps role integers to their associated root ExtendedGUIDs
objectsdict[ExtendedGUID, OneStoreObject]ReadProvides a dictionary of all OneStoreObject instances keyed by their ExtendedGUID
section_display_namestr | NoneReadContains the optional display name of the section
revisionslist[RevisionManifestRecord]ReadIs a list of RevisionManifestRecord objects representing document revisions
role_bindingslist[RevisionRoleBinding]ReadStores a list of RevisionRoleBinding linking roles to revisions
latest_roots_by_context_roledict[tuple[ExtendedGUID | None, int], ExtendedGUID]ReadMaps (context GUID, role) tuples to the latest root GUID
latest_revision_indices_by_context_roledict[tuple[ExtendedGUID | None, int], int]ReadMaps (context GUID, role) to the latest revision index

Methods

SignatureDescription
get_latest_root(role: int, context_id: ExtendedGUID | None)ExtendedGUID | NoneReturns the latest root GUID for the given role and context, or None if not found
iter_latest_roots(role: int)list[tuple[ExtendedGUID | None, ExtendedGUID]]Yields a list of (context GUID, root GUID) pairs for the specified role
get_latest_revision_index(role: int, context_id: ExtendedGUID | None)int | NoneReturns the latest revision index for the role and optional context

See Also