Page MenuHomeSoftware Heritage

D7536.id27326.diff
No OneTemporary

D7536.id27326.diff

diff --git a/swh/model/model.py b/swh/model/model.py
--- a/swh/model/model.py
+++ b/swh/model/model.py
@@ -1513,3 +1513,28 @@
def _compute_hash_from_attributes(self) -> bytes:
return _compute_hash_from_manifest(git_objects.extid_git_object(self))
+
+
+SWH_MODEL_OBJECT_TYPES = {
+ cls.object_type: cls # type: ignore
+ for cls in (
+ Person,
+ Timestamp,
+ TimestampWithTimezone,
+ Origin,
+ OriginVisit,
+ OriginVisitStatus,
+ Snapshot,
+ SnapshotBranch,
+ Release,
+ Revision,
+ Directory,
+ DirectoryEntry,
+ Content,
+ SkippedContent,
+ MetadataAuthority,
+ MetadataFetcher,
+ RawExtrinsicMetadata,
+ ExtID,
+ )
+}

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 12:18 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3232379

Event Timeline