Blocks
blocks
¶
Core building blocks for pages and databases.
BT = TypeVar('BT', bound=obj_blocks.Block)
module-attribute
¶
FT = TypeVar('FT', bound=obj_blocks.FileObjectBlock)
module-attribute
¶
T = TypeVar('T', bound=obj_blocks.DataObject)
module-attribute
¶
Block(*args: Any, **kwargs: Any)
¶
Bookmark(*args: Any, **kwargs: Any)
¶
Callout(*args: Any, **kwargs: Any)
¶
ChildDatabase(*args: Any, **kwargs: Any)
¶
ChildPage(*args: Any, **kwargs: Any)
¶
ChildrenMixin(*args: Any, **kwargs: Any)
¶
Mixin for blocks that support children blocks.
children: list[Block]
property
¶
Return all children.
DataObject(*args: Any, **kwargs: Any)
¶
The base type for all data-related types, i.e, pages, databases and blocks.
ancestors: tuple[DataObject, ...]
property
¶
Return all ancestors from the workspace to the actual record (excluding).
created_by: User
property
¶
created_time: datetime
property
¶
has_children: bool
property
¶
id: UUID
property
¶
is_deleted: bool
property
¶
Return wether the object is deleted/archived.
last_edited_by: User
property
¶
last_edited_time: datetime
property
¶
parent: DataObject | None
property
¶
Return the parent record or None if the workspace is the parent.