(id_rwi)
| 88 | last_mtimes = dict() |
| 89 | |
| 90 | def serialize(id_rwi): |
| 91 | |
| 92 | ser_om.UpdateStatesFromObjects() |
| 93 | active_ids = ser_om.GetAllDependencies(id_rwi) |
| 94 | |
| 95 | status = dict(ids=[], mtimes=[], hashes=[]) |
| 96 | status['ids'] = active_ids |
| 97 | status['mtimes'] = {object_id: ser_om.GetObjectAtId( |
| 98 | object_id).GetMTime() for object_id in active_ids} |
| 99 | status['hashes'] = {blob_hash: ser_om.GetBlob( |
| 100 | blob_hash, True) for blob_hash in ser_om.GetBlobHashes(active_ids)} |
| 101 | return status |
| 102 | |
| 103 | def deserialize(status: dict): |
| 104 |
nothing calls this directly
no test coverage detected