mς TγΈEc@sZdZdklZlZdklZdklZdkl Z defd„ƒYZ dS(sVery Simple Mapping ZODB storage The Mapping storage provides an extremely simple storage implementation that doesn't provide undo or version support. It is meant to illustrate the simplest possible storage. The Mapping storage uses a single data structure to map object ids to data. (su64sz64(s BaseStorage(s POSException(s TimeStamptMappingStoragecBswtZdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „Z d „Z d „Z d „Z d „Z RS(NsMapping StoragecCs0ti||ƒh|_|iƒd|_dS(N(t BaseStoraget__init__tselftnamet_indext _clear_temptNonet_ltid(RR((t2/data/zmath/zope/lib/python/ZODB/MappingStorage.pyR s  cCs t|iƒS(N(tlenRR(R((R t__len__,scCsX|iƒz<d}x+|iiƒD]}|dt|ƒ7}q#W|SWd|iƒXdS(Ni i8(Rt _lock_acquiretsRt itervaluestpR t _lock_release(RRR ((R tgetSize/s cCs?|iƒz#|i|}|d|d fSWd|iƒXdS(Ni(RR RtoidRR(RRtversionR((R tload:s   cCs|i||ƒdS(Nt(R(RRRR(RRR((R tloadExBscCs/|iƒz|i|d SWd|iƒXdS(Ni(RR RRR(RR((R tgetTidGs  cCsΡ||ij oti||ƒ‚n|otidƒ‚n|iƒzr||i joJ|i |d }||jo(ti d|d||fd|ƒ‚q§n|i||i|