Session

class app.portfolio.journal.session.Session[source]

Bases: LoggableHierarchicalModel

Inheritance diagram of Session

Inheritance Diagram for Session

Methods

abort()

commit()

contains(uid)

end()

get_record_journal(record, *[, create])

model_post_init(context)

on_entity_record_created(record_or_uid)

on_journal_reset_notified_dependents(journal)

Attributes

dirty

ended

in_abort

in_commit

instance_name

model_config

Configuration for the model, should be a dictionary conforming to ConfigDict.

superseded

uid

actor

reason

start_time

instance_parent_weakref

abort() None[source]
Return type:

None

actor: str
commit() None[source]
Return type:

None

contains(uid: Uid) bool[source]
Parameters:

uid (Uid)

Return type:

bool

property dirty: bool
end() None[source]
Return type:

None

property ended: bool
get_record_journal(record: EntityRecord, *, create: bool = True) Journal | None[source]
Parameters:
Return type:

Journal | None

property in_abort: bool
property in_commit: bool
property instance_name: str
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True, 'serialize_by_alias': True, 'validate_assignment': True, 'validate_by_alias': True}

Configuration for the model, should be a dictionary conforming to ConfigDict.

model_post_init(context: Any) None[source]
Parameters:

context (Any)

Return type:

None

on_entity_record_created(record_or_uid: EntityRecord | Uid) None[source]
Parameters:

record_or_uid (EntityRecord | Uid)

Return type:

None

on_journal_reset_notified_dependents(journal: Journal) None[source]
Parameters:

journal (Journal)

Return type:

None

reason: str
start_time: datetime
property superseded: bool
uid: Uid