ZODB.Architecture.DB.invalidate

Documentation
Invalidate references to a given oid.

This is used to indicate that a change has been committed for an object.

An object may be changed by another connection in the same process. In this case, the connection changing the object calls this method and should pass itself in to prevent useless (but harmless) messages to the connection.

An object may also be changed due to commiting a version or due to changes made by another process, if the storage supports multiple processes. In this case, the message is sent by the storage. When a version is committed, objects are invalidated in the destination version.
Parameters
TypeNameDefaultDocumentation
OIDoid The object ID of the object that is invalidated.
ConnectionconnectionNoneif the object was changed by a connection in the same process, then this is the connection. The version associated with this connection is the version in which objects are invalidated.
VersionStringversion''the version used when no connection is passed in