aleph.model.common

aleph.model.common.make_textid()
aleph.model.common.merge_data(base, merge)

Merge two objects such that values in base are kept and updated only if merge has additional info.

aleph.model.common.object_key(obj)

Generate a checksum for a nested object or list.

DatedModel

class aleph.model.common.DatedModel

Imports

  • object
all(cls)
by_id(cls, id)
all_ids(cls)
all_by_ids(cls, ids)
delete(self)
to_dict(self)

IdModel

class aleph.model.common.IdModel

Imports

  • object
to_dict(self)

ModelFacets

class aleph.model.common.ModelFacets

Imports

  • object
facet_by(cls, q, field)

SoftDeleteModel

class aleph.model.common.SoftDeleteModel

Imports

  • aleph.model.common.DatedModel
all(cls)
all_ids(cls)
delete(self)
to_dict(self)

UuidModel

class aleph.model.common.UuidModel

Imports

  • object
to_dict(self)