ó J¡Vc@sóddlZddlTdZdZdZdZdefd„ƒYZdefd „ƒYZe d krïe j d ƒddl Z eƒZ e jed d edƒƒe jeddedƒƒe jƒZe jeƒe jejƒƒndS(iÿÿÿÿNi(t*iitRecordcBseZd„ZRS(cCs(||_||_||_||_dS(N(tidttypttyp_codetpayload(tselfRRRR((sY/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyt__init__%s   (t__name__t __module__R(((sY/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyR$stMessagecBs/eZd„Zd„Zd„Zed„ZRS(cCs g|_dS(N(trecords(R((sY/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyR-scCs|jj|ƒdS(N(R tappend(Rtrec((sY/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyt add_record0sc Cs.x't|jƒD]\}}tjd||jfƒd}}}|dkrYd}n|t|jƒdkr{d}n|jtjdt d@d>|d@d>B|d@d>B|d@Bƒƒ|jtjd|j d@d >d @ƒƒ|jtjd dƒƒ|j t|jƒƒ}|jtjd t|jƒƒƒ|j t|j ƒƒ}|jtjd t|j ƒƒƒ|j t|j ƒƒ} |jtjd t|j ƒƒƒ|rÔ|jtjd ||jƒƒn|rý|jtjd ||j ƒƒn| r|jtjd | |j ƒƒqqWdS(NsProcessing record %d (%s)iis!Biiiiiiðs!Hs!Is%ds(t enumerateR tlogtdebugRtlentwritetstructtpackt DIME_VERSIONRt bytes_neededRR( Rtoutputtitrtmbtmetcftid_lenttyp_lentdata_len((sY/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pytgenerate3s0  #("""##cCs.||dkr|St||dƒ|SdS(Nii(tint(RR t block_size((sY/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyRVs(RR RRR!tPAD_SIZER(((sY/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyR ,s   #t__main__Rscid:id0s)http://schemas.xmlsoap.org/soap/envelope/stestttest2stext/xmlstest2(Rtgt TYPE_T_MIMEt TYPE_T_URIRR$tobjectRR RRt set_leveltiotmRtStringIORR!tlog_datatgetvalue(((sY/builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyts"  3