mò 0á¸Ec@sSdZdfd„ƒYZeƒZeiZeiZeiZeiZeiZdS(sOZODB connection registry $Id: connections.py 30326 2005-05-11 16:03:21Z shh $ tConnectionRegistrycBsVtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( sZODB connection registry This registry can hold either ZODB.Connection objects or OFS.Application objects. In the latter case, a close operation will close the REQUEST as well as the Connection referenced by the Application's _p_jar attribute. cCs g|_dS(N(tselft_conns(R((t?/data/zmath/zope/lib/python/Testing/ZopeTestCase/connections.pyt__init__scCs|ii|ƒdS(N(RRtappendtconn(RR((RtregisterscCs ||ijS(N(RRR(RR((Rtcontains scCs t|iƒS(N(tlenRR(R((Rt__len__#scCs t|ƒS(N(R R(R((Rtcount&scCs5|i|ƒo|ii|ƒn|i|ƒdS(N(RRRRtremovet _do_close(RR((Rtclose)scCs.x|iD]}|i|ƒq Wg|_dS(N(RRRR (RR((RtcloseAll.s cCs<t|dƒo|iƒn|iiƒ|iiƒdS(NR(thasattrRRtREQUESTt_p_jar(RR((RR 3s ( t__name__t __module__t__doc__RRRR R RRR (((RRs        N(RRtregistryRRR RR(R RRRRRR((Rt?s)