ó
J¡Vc @ só d d l Z d d l Td Z d Z d Z d Z d e f d „ ƒ YZ d e f d „ ƒ YZ e d
k rï e
j d ƒ d d l Z e ƒ Z
e
j e d d
e d ƒ ƒ e
j e d d e d ƒ ƒ e j ƒ Z e
j e ƒ e
j e j ƒ ƒ n d S( iÿÿÿÿNi ( t *i i t Recordc B s e Z d „ Z RS( c C s( | | _ | | _ | | _ | | _ d S( N( t idt typt typ_codet payload( t selfR R R R ( ( 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 $ s t Messagec B s/ e Z d „ Z d „ Z d „ Z e d „ Z RS( c C s
g | _ d S( N( t records( R ( ( sY /builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyR - s c C s | j j | ƒ d S( N( R t append( R t rec( ( sY /builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyt
add_record0 s c
C s. x't | j ƒ D]\ } } t j d | | j f ƒ d } } } | d k rY d } n | t | j ƒ d k r{ d } n | j t j d t d @d >| d @d >B| d @d >B| d @Bƒ ƒ | j t j d | j
d @d >d
@ƒ ƒ | j t j d d ƒ ƒ | j t | j ƒ ƒ } | j t j d t | j ƒ ƒ ƒ | j t | j ƒ ƒ } | j t j d t | j ƒ ƒ ƒ | j t | j
ƒ ƒ } | j t j d t | j
ƒ ƒ ƒ | rÔ| j t j d
| | j ƒ ƒ n | rý| j t j d
| | j ƒ ƒ n | r | j t j d
| | j
ƒ ƒ q q Wd S( Ns Processing record %d (%s)i i s !Bi i i i i ið s !Hs !Is %ds( t enumerateR t logt debugR t lent writet structt packt DIME_VERSIONR t bytes_neededR R (
R t outputt it rt mbt met cft id_lent typ_lent data_len( ( sY /builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyt generate3 s0 #("""##c C s. | | d k r | St | | d ƒ | Sd S( Ni i ( t int( R R t
block_size( ( sY /builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyR V s ( R R R R R! t PAD_SIZER ( ( ( sY /builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyR
, s #t __main__R s cid:id0s) http://schemas.xmlsoap.org/soap/envelope/s testt test2s text/xmls test2( R t gt TYPE_T_MIMEt
TYPE_T_URIR R$ t objectR R
R R t set_levelt iot mR t StringIOR R! t log_datat getvalue( ( ( sY /builds/ul11u3sru-gate/components/hplip/build/prototype/i386/usr/share/hplip/base/dime.pyt s"
3