mς γΈEc@sαdZdklZlZdklZdefd„ƒYZdefd„ƒYZdefd„ƒYZd efd „ƒYZ d fd „ƒYZ d fd„ƒYZ dfd„ƒYZ dfd„ƒYZ dfd„ƒYZdS(sNAdapter test fixtures $Id: adapters.py 63598 2006-01-08 06:30:26Z philikon $ (s implementss Interface(sadaptst IAdaptablecBstZdZd„ZRS(s This is a Zope 3 interface. cCsdS(s$This method will be adapted N((((t;/data/zmath/zope/lib/python/Products/Five/tests/adapters.pytmethods(t__name__t __module__t__doc__R(((RRs tIAdaptedcBstZdZd„ZRS(sThe interface we adapt to. cCsdS(sA method to adapt. N((((Rt adaptedMethod s(RRRR(((RRs tIOrigincBstZdZRS(sSomething we'll adapt(RRR(((RR$s t IDestinationcBstZdZd„ZRS(sThe result of an adaptioncCsdS(s Do somethingN((((RR*s(RRRR(((RR 's t AdaptablecBstZeeƒd„ZRS(NcCsdS(Ns The method((tself((RR0s(RRt implementsRR(((RR -s tAdaptercBs.tZeeƒeeƒd„Zd„ZRS(NcCs ||_dS(N(tcontextR (R R((Rt__init__7scCsd|iiƒS(Ns Adapted: %s(R RR(R ((RR:s(RRR RtadaptsRRR(((RR 3s   tOrigincBstZeeƒRS(N(RRR R(((RR=stOriginalAdaptercBs$tZeeƒd„Zd„ZRS(NcCs ||_dS(N(RR (R R((RRCscCsdS(NtOriginal((R ((RRFs(RRR R RR(((RR@s  tOverrideAdaptercBs$tZeeƒd„Zd„ZRS(NcCs ||_dS(N(RR (R R((RRLscCsdS(Nt Overridden((R ((RROs(RRR R RR(((RRIs  N(Rtzope.interfaceR t Interfacetzope.componentRRRRR R R RRR( R RRR RR R RRRRR((Rt?s