mò .á¸Ec@s dklZdklZdklZdklZlZdk l Z dZ d„Z dd„Zdfd „ƒYZd „Zd „Zd „Zd d„ZdS((s encodestring(sStringIO(s referencesf(s TemporaryFilesexport_end_marker(sppmls %s (tppmltToXMLUnpicklertqtStringIOtptftutu64toidtidt encodestringtakatstrtidprefixtloadt__str__ttelltlentString( R RRRRRRR R ((t2/data/zmath/zope/lib/python/OFS/XMLExportImport.pyt XMLrecords   c Cs|djo tƒ}n't|ƒtjot|dƒ}n|i}|dƒ|i} t }|g}h}|i} |ii}x‡|o|d}|d=| |ƒoq‰nd|| iis (tfiletNonet TemporaryFilettypeR topentwritetjart_versiontversiont referencesftrefR toidst done_oidsthas_keytdonet_storageRRtserialRR( RR RRR"R R!RRRR$R&((Rt exportXML#s6           ! tzopedatacBstZd„Zd„ZRS(NcCs&|i|_|ii}|dƒdS(NtZEXP(tparserRtselfR(R+R*ttagtattrsR((Rt__init__=s  cCs9|i}|i}|iƒ}|i|ƒ||ƒdS(N(R+RRRtpostseektdata(R+R1RR/R((RtappendBs     (t__name__t __module__R.R2(((RR(<s cCst|||ƒS(N(R(R*R,R1(R*R,R1((Rtstart_zopedataIscCs9|i}|i}|iƒ}|i|ƒ|tƒdS(N(R*RRRR/R0texport_end_marker(R*R,R1R/RR((Rt save_zopedataLs     c Cs´|i}|i}|iƒ}|i|ƒ|d}|idƒo|d}nt i t |ƒƒ}d}x|dD]} || }qyWt i t|ƒƒ} || |}|S(NiR ti(R*RRRR/R0R1taR#R Rtp64tinttvtxRtl( R*R,R1R9R R/RRR<R=R>((Rt save_recordSs      R8c Csëdk}t|ƒtjot|dƒ}ntƒ}|iƒ}t i ƒ}t |id