| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/hplip/fax/ |
Upload File : |
Ñò
lïJc @ s d d k l Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Td d k Td d k
l Z l Z l
Z
l Z d d k Te i d e i ƒ Z d Z d Z d Z d Z d Z d Z d Z d
Z d Z d Z d
e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿ( t divisionN( t *( t devicet utilst codest dimes HTTP/\d.\d\s(\d+)i i i i iÈ iô ià t
SOAPFaxDevicec B s’ e Z d d d e e d „ Z d „ Z d „ Z d „ Z e e e ƒ Z
d „ Z d „ Z e e e ƒ Z
d „ Z d d d e d d d d „ Z RS(
c C s[ t i | | | | | | ƒ d | _ d | _ | i d j o | i | _ n
d | _ d S( Nt nett localhost( t FaxDevicet __init__t Nonet send_fax_threadt upload_log_threadt bust hostt http_host( t selft
device_urit printer_namet callbackt fax_typet disable_dbus( ( s /usr/share/hplip/fax/soapfax.pyR
A s c
C sB g } x@ | i ƒ D]2 \ } } | i d | t i t | ƒ ƒ f ƒ q Wd i | ƒ } t i | ƒ d | | i t | ƒ | f } t i
| ƒ | i | ƒ t i
ƒ } x | i d | d d ƒo q W| i ƒ } t i
| ƒ | i ƒ t i | ƒ } y t | i d ƒ ƒ } Wn t t f j
o
t } n X| t j S( Ns %s=%st &su POST %s HTTP/1.1
Connection: Keep-alive
User-agent: hplip/2.0
Host: %s
Content-length: %d
Cache-control: No-cache
%si t timeouti i ( t itemst appendt urllibt quotet strt joint logt debugR t lent log_datat writeEWSt cStringIOt StringIOt readEWSt getvaluet closeEWSt http_result_patt matcht intt groupt
ValueErrort TypeErrort
HTTP_ERRORt HTTP_OK(
R t urlt postt st kt vt datat retR* t code( ( s /usr/share/hplip/fax/soapfax.pyR2 T s,
*
c C s | i d h t | ƒ d 6ƒ S( Ns /hp/device/set_config.htmlt FaxNumber( R2 R ( R t num( ( s /usr/share/hplip/fax/soapfax.pyt setPhoneNum} s c C s? t i ƒ } | i d | ƒ t i ƒ i | i ƒ ƒ } | d S( Ns( /hp/device/settings_fax_setup_wizard.xmls' faxsetupwizard-faxvoicenumber-faxnumber( R$ R% t getEWSUrlR t XMLToDictParsert parseXMLR' ( R t streamt fax_setup( ( s /usr/share/hplip/fax/soapfax.pyt getPhoneNum s c C s | i d h t | ƒ d 6ƒ S( Ns /hp/device/set_config.htmlt FaxCompanyName( R2 R ( R t name( ( s /usr/share/hplip/fax/soapfax.pyt setStationNameŠ s c C s? t i ƒ } | i d | ƒ t i ƒ i | i ƒ ƒ } | d S( Ns( /hp/device/settings_fax_setup_wizard.xmls- faxsetupwizard-userinformation-faxcompanyname( R$ R% R<