ZODB.Architecture.Storage Interface.new_oid

Documentation
Allocate a new object id. The object id returned is reserved at least for the time that the storage remains in the commiting state, and longer if the transaction commits and stores a value for the object id.
Returns
OIDA new unused object id. The storage will not give out this OID again.
State-dependent
This method is only valid in the commiting state.