config root man

Current Path : /compat/linux/proc/68247/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/root/usr/local/lib/python2.5/xmlrpclib.pyc

hRc-@sdZddkZddkZddkZddkZddkTyeWnej
o
dZnXyddk	Z	Wne
j
o
dZ	nXyeii
djZWnej
o
dZnXeididZeidZeo
d	Zn
d
ZdZdMZdOZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#de$fdYZ%de%fdYZ&de%fdYZ'de%fd YZ(eoe)Z*Z+e,eZ,Zn?d!dPd"YZ+e+de+dZ,Zee,fd#Z*d$dQd%YZ-d&Z.d'Z/ddk0Z0yddk1Z2Wne
j
oddk2Z2nXd(dRd)YZ3d*Z4e-e3fZ5epe5e+fZ5ny"ddk6Z6e6i7Z8e6i9Z:Wn#e;e
fj
odZ8Z:nXyddk6Z6e6i<Z=Wne;e
fj
o
dZ=nXy*ddk>Z>e?e>d+p
e
nWne
j
o
dZ@nXd,dSd-YZ@y.dd.kAlBZBe?eBd/p
e
nWne
j
o
dZCnXd0dTd1YZCd2dUd3YZDd4dVd5YZ<d6dWd7YZ9d8dXd9YZEd:dYd;YZFd<dZd=YZGdd>ZHddddd?ZIdd@ZJdAd[dBYZKdCd\dDYZLdEeLfdFYZMdGd]dHYZNeNZOe
dIjoeNdJZPePGHyePiQiRGHWne%j
oZSdKGeSGHnXeGePZTeTiQiReTiQiRyxeTD]ZUeUGHqlWWqe%j
oZSdKGeSGHqXndS(^s~
An XML-RPC client interface for Python.

The marshalling and response parser code can also be used to
implement XML-RPC servers.

Exported exceptions:

  Error          Base class for client errors
  ProtocolError  Indicates an HTTP protocol error
  ResponseError  Indicates a broken response package
  Fault          Indicates an XML-RPC fault package

Exported classes:

  ServerProxy    Represents a logical connection to an XML-RPC server

  MultiCall      Executor of boxcared xmlrpc requests
  Boolean        boolean wrapper to generate a "boolean" XML-RPC value
  DateTime       dateTime wrapper for an ISO 8601 string or time tuple or
                 localtime integer value to generate a "dateTime.iso8601"
                 XML-RPC value
  Binary         binary data wrapper

  SlowParser     Slow but safe standard parser (based on xmllib)
  Marshaller     Generate an XML-RPC params chunk from a Python data structure
  Unmarshaller   Unmarshal an XML-RPC response from incoming XML event message
  Transport      Handles an HTTP transaction to an XML-RPC server
  SafeTransport  Handles an HTTPS transaction to an XML-RPC server

Exported constants:

  True
  False

Exported functions:

  boolean        Convert any Python value to an XML-RPC boolean
  getparser      Create instance of the fastest available parser & attach
                 to an unmarshalling object
  dumps          Convert an argument tuple or a Fault instance to an XML-RPC
                 request (or response, if the methodresponse option is used).
  loads          Convert an XML-RPC packet to unmarshalled data plus a method
                 name (None if not present).
iN(t*tboolis[-]cCs2to'|o ||ot||}n|S(N(tunicode(tdatatencodingtis8bit((s%/usr/local/lib/python2.5/xmlrpclib.pyt_decodescCs4||dd}||dd}||ddS(Nt&s&amp;t<s&lt;t>s&gt;((tstreplace((s%/usr/local/lib/python2.5/xmlrpclib.pytescapescCs/y|idSWntj
o|SnXdS(Ntascii(tencodetUnicodeError(tstring((s%/usr/local/lib/python2.5/xmlrpclib.pyt
_stringifyscCs|S(N((R((s%/usr/local/lib/python2.5/xmlrpclib.pyRss1.0.1liiiDiiipiԁiCiBiiitErrorcBseZdZdZRS(sBase class for client errors.cCs
t|S(N(trepr(tself((s%/usr/local/lib/python2.5/xmlrpclib.pyt__str__s(t__name__t
__module__t__doc__R(((s%/usr/local/lib/python2.5/xmlrpclib.pyRst
ProtocolErrorcBs eZdZdZdZRS(s!Indicates an HTTP protocol error.cCs5ti|||_||_||_||_dS(N(Rt__init__turlterrcodeterrmsgtheaders(RRRRR((s%/usr/local/lib/python2.5/xmlrpclib.pyRs

			cCsd|i|i|ifS(Ns<ProtocolError for %s: %s %s>(RRR(R((s%/usr/local/lib/python2.5/xmlrpclib.pyt__repr__s(RRRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRs	t
ResponseErrorcBseZdZRS(s$Indicates a broken response package.(RRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyR stFaultcBs eZdZdZdZRS(s#Indicates an XML-RPC fault package.cKs#ti|||_||_dS(N(RRt	faultCodetfaultString(RR"R#textra((s%/usr/local/lib/python2.5/xmlrpclib.pyRs
	cCsd|it|ifS(Ns<Fault %s: %s>(R"RR#(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRs(RRRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyR!s	tBooleancBsGeZdZddZdZdZdZdZdZRS(saBoolean-value wrapper.

        Use True or False to generate a "boolean" XML-RPC value.
        icCsti||_dS(N(toperatorttruthtvalue(RR(((s%/usr/local/lib/python2.5/xmlrpclib.pyR(scCs|id|idS(Ns%<value><boolean>%d</boolean></value>
(twriteR((Rtout((s%/usr/local/lib/python2.5/xmlrpclib.pyR+scCs-t|to
|i}nt|i|S(N(t
isinstanceR%R(tcmp(Rtother((s%/usr/local/lib/python2.5/xmlrpclib.pyt__cmp__.s
cCs.|iodt|Sndt|SdS(Ns<Boolean True at %x>s<Boolean False at %x>(R(tid(R((s%/usr/local/lib/python2.5/xmlrpclib.pyR3s
cCs|iS(N(R((R((s%/usr/local/lib/python2.5/xmlrpclib.pyt__int__9scCs|iS(N(R((R((s%/usr/local/lib/python2.5/xmlrpclib.pyt__nonzero__<s(	RRRRRR.RR0R1(((s%/usr/local/lib/python2.5/xmlrpclib.pyR%"s				cCs|ti|S(s.Convert any Python value to XML-RPC 'boolean'.(R&R'(R(t
_truefalse((s%/usr/local/lib/python2.5/xmlrpclib.pytbooleanLstDateTimecBsGeZdZddZdZdZdZdZdZRS(sDateTime wrapper for an ISO 8601 string or time tuple or
    localtime integer value to generate 'dateTime.iso8601' XML-RPC
    value.
    icCs4t|tpto-t|tio|id|_dSnto-t|tio|id|_dSntoIt|tio6tiiid}|i|d|_dSnt|tti	fp0|djoti}nti
|}ntid|}n||_dS(Ns%Y%m%dT%H:%M:%Ss%Y%m%ds	T%H:%M:%Si(R+t
StringTypetdatetimetstrftimeR(tdatettimetnowt	TupleTypetstruct_timet	localtime(RR(ttoday((s%/usr/local/lib/python2.5/xmlrpclib.pyRcs"
cCs-t|to
|i}nt|i|S(N(R+R4R(R,(RR-((s%/usr/local/lib/python2.5/xmlrpclib.pyR.vs
cCs|iS(N(R((R((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCsdt|it|fS(Ns<DateTime %s at %x>(RR(R/(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCs"t|}ti||_dS(N(tstrRtstripR((RR((s%/usr/local/lib/python2.5/xmlrpclib.pytdecodescCs.|id|i|i|iddS(Ns<value><dateTime.iso8601>s</dateTime.iso8601></value>
(R)R((RR*((s%/usr/local/lib/python2.5/xmlrpclib.pyRs
(	RRRRR.RRRAR(((s%/usr/local/lib/python2.5/xmlrpclib.pyR4]s	
			cCst}|i||S(N(R4RA(RR(((s%/usr/local/lib/python2.5/xmlrpclib.pyt	_datetimes	
cCs)ti|d}tit|d S(Ns%Y%m%dT%H:%M:%Si(R9tstrptimeR6ttuple(Rtt((s%/usr/local/lib/python2.5/xmlrpclib.pyt_datetime_typestBinarycBs>eZdZddZdZdZdZdZRS(sWrapper for binary data.cCs
||_dS(N(R(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCs|ipdS(Nt(R(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCs-t|to
|i}nt|i|S(N(R+RGRR,(RR-((s%/usr/local/lib/python2.5/xmlrpclib.pyR.s
cCsti||_dS(N(tbase64tdecodestringR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRAscCs:|idtiti|i||iddS(Ns<value><base64>
s</base64></value>
(R)RIRtStringIOR(RR*((s%/usr/local/lib/python2.5/xmlrpclib.pyRs
N(	RRRtNoneRRR.RAR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRGs			cCst}|i||S(N(RGRA(RR(((s%/usr/local/lib/python2.5/xmlrpclib.pyt_binarys	
t	XMLParsertSgmlopParsercBs,eZdZdZdZdZRS(cCs|i|_|i|_|i|_|i|_ti	|_
|i
i||i
i|_hdd<dd<dd<dd<d	d
<|_
dS(NRtampR	tgtRtltt'tapost"tquot(tstarttfinish_starttagtendt
finish_endtagRthandle_datatxmlt
handle_xmltsgmlopRNtparsertregistertfeedtentity(Rttarget((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCs)z|iiWdd|_|_XdS(N(R_tcloseRLRa(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRdscCs:tid|}|o|i|iddndS(Nsencoding\s*=\s*['"]([^"']+)["']i(tretsearchR]tgroup(Rttagtattrtm((s%/usr/local/lib/python2.5/xmlrpclib.pythandle_procscCsCy|i|i|Wn$tj
o|id|nXdS(Ns&%s;(R[RbtKeyError(RRb((s%/usr/local/lib/python2.5/xmlrpclib.pythandle_entityrefs(RRRRdRkRm(((s%/usr/local/lib/python2.5/xmlrpclib.pyROs			(texpattParserCreatetExpatParsercBs#eZdZdZdZRS(cCsttidd|_}||_|i|_|i|_|i	|_
d}|ip
d}n|i|ddS(Nsutf-8(
RnRoRLt_parsert_targetRWtStartElementHandlerRYtEndElementHandlerRtCharacterDataHandlertreturns_unicodeR\(RRcR_R((s%/usr/local/lib/python2.5/xmlrpclib.pyRs	

cCs|ii|ddS(Ni(RqtParse(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRa"scCs#|iidd|`|`dS(NRHi(RqRwRr(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRd%s(RRRRaRd(((s%/usr/local/lib/python2.5/xmlrpclib.pyRps		t
SlowParsercBseZdZdZRS(s/Default XML parser (based on xmllib.XMLParser).cCsddk}|itijo|ift_n|i|_|i|_|i|_	|i|_
|i|_y|ii
|ddWn#tj
o|ii
|nXdS(Nitaccept_utf8i(txmllibRNRxt	__bases__R\R]RWtunknown_starttagRR[thandle_cdataRYtunknown_endtagRt	TypeError(RRcRz((s%/usr/local/lib/python2.5/xmlrpclib.pyR-s(RRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRx)st
MarshallercBsieZdZdddZhZdZdZdZeee	<dZ
e
ee<eodZ
e
ee<ndZeee<d	Zeee<ed
Zeee<eoedZeee<ndZeee<eee<ed
Zeee<eoFdZeeei<dZ e eei!<dZ"e"eei#<ndZ$e$ee%<RS(svGenerate an XML-RPC params chunk from a Python data structure.

    Create a Marshaller instance for each set of parameters, and use
    the "dumps" method to convert your data (represented as a tuple)
    to an XML-RPC params chunk.  To write a fault response, pass a
    Fault instance instead.  You may prefer to use the "dumps" module
    function for this purpose.
    icCs(h|_d|_||_||_dS(N(tmemoRLRRt
allow_none(RRR((s%/usr/local/lib/python2.5/xmlrpclib.pyRRs			cCsg}|i}|i}t|to=|d|h|id<|id<||dnG|dx/|D]'}|d||||dqvW|dti|d	}|S(
Ns<fault>
R"R#s	</fault>
s	<params>
s<param>
s	</param>
s
</params>
RH(tappendt_Marshaller__dumpR+R!R"R#Rtjoin(RtvaluesR*R)tdumptvtresult((s%/usr/local/lib/python2.5/xmlrpclib.pytdumpsZs$		




cCsTy|it|}Wn&tj
otdt|nX||||dS(Nscannot marshal %s objects(tdispatchttypeRlR(RR(R)tf((s%/usr/local/lib/python2.5/xmlrpclib.pyt__dumpus
cCs%|ip
tdn|ddS(Ns0cannot marshal None unless allow_none is enableds<value><nil/></value>(RR(RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pytdump_nil}s

cCsO|tjp
|tjo
tdn|d|t||ddS(Nsint exceeds XML-RPC limitss<value><int>s</int></value>
(tMAXINTtMININTt
OverflowErrorR?(RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pytdump_ints


cCs0|d||odpd|ddS(Ns<value><boolean>t1t0s</boolean></value>
((RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pyt	dump_bools
cCsU|tjp
|tjo
tdn|d|tt||ddS(Nslong int exceeds XML-RPC limitss<value><int>s</int></value>
(RRRR?tint(RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pyt	dump_longs


cCs(|d|t||ddS(Ns<value><double>s</double></value>
(R(RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pytdump_doubles
cCs(|d||||ddS(Ns<value><string>s</string></value>
((RR(R)R((s%/usr/local/lib/python2.5/xmlrpclib.pytdump_strings
cCs:|i|i}|d||||ddS(Ns<value><string>s</string></value>
(RR(RR(R)R((s%/usr/local/lib/python2.5/xmlrpclib.pytdump_unicodes
cCst|}|ii|o
tdnd|i|<|i}|dx|D]}|||qSW|d|i|=dS(Ns"cannot marshal recursive sequencess<value><array><data>
s</data></array></value>
(R/Rthas_keyRRLR(RR(R)tiRR((s%/usr/local/lib/python2.5/xmlrpclib.pyt
dump_arrays

	

cCst|}|ii|o
tdnd|i|<|i}|dx|iD]\}}|dt|tj	o=t	o)t|t
jo|i|i}qtdn|d||||||dqYW|d|i|=dS(Ns%cannot marshal recursive dictionariess<value><struct>
s	<member>
sdictionary key must be strings<name>%s</name>
s
</member>
s</struct></value>
(
R/RRRRLRtitemsRR5RtUnicodeTypeRR(RR(R)RRRtkR((s%/usr/local/lib/python2.5/xmlrpclib.pytdump_structs$

	





cCs+|d||id|ddS(Ns<value><dateTime.iso8601>s%Y%m%dT%H:%M:%Ss</dateTime.iso8601></value>
(R7(RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pyt
dump_datetimes
cCs+|d||id|ddS(Ns<value><dateTime.iso8601>s%Y%m%dT00:00:00s</dateTime.iso8601></value>
(R7(RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pyt	dump_dates
cCsM|d|tiiiid||id|ddS(Ns<value><dateTime.iso8601>s%Y%m%dTs%H:%M:%Ss</dateTime.iso8601></value>
(R6R:R8R7(RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pyt	dump_times
"cCsG|itjo ||_|i||`n|i|i|dS(N(t	__class__tWRAPPERSR)RRt__dict__(RR(R)((s%/usr/local/lib/python2.5/xmlrpclib.pyt
dump_instances
	

N(&RRRRLRRRRRtNoneTypeRtIntTypet_bool_is_builtinRRRtLongTypeRt	FloatTypeRRR5RRRRR;tListTypeRtDictTypeR6RRR8RR9RtInstanceType(((s%/usr/local/lib/python2.5/xmlrpclib.pyREsF			
	
		
	

	


	
	
			tUnmarshallercBspeZdZddZdZdZdZdZdZe	i
dZd	ZhZ
d
Zee
d<dZee
d
<dZee
d<ee
d<dZee
d<dZee
d<ee
d<dZee
d<dZee
d<dZee
d<dZee
d<dZee
d<d Zee
d!<d"Zee
d#<d$Zee
d%<RS(&sUnmarshal an XML-RPC response, based on incoming XML event
    messages (start, data, end).  Call close() to get the resulting
    data structure.

    Note that this reader is fairly tolerant, and gladly accepts bogus
    XML-RPC data without complaining (but not bogus XML).
    icCsnd|_g|_g|_g|_d|_d|_|ii|_||_|ot	o
t
dndS(Nsutf-8s$the datetime module is not available(RLt_typet_stackt_markst_datat_methodnamet	_encodingRt
_use_datetimeR6t
ValueError(Rtuse_datetime((s%/usr/local/lib/python2.5/xmlrpclib.pyRs							cCs[|idjp
|io
tn|idjot|idnt|iS(Ntfaulti(RRLRR R!RRD(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRds

cCs|iS(N(R(R((s%/usr/local/lib/python2.5/xmlrpclib.pyt
getmethodnamescCs
||_dS(N(R(RRt
standalone((s%/usr/local/lib/python2.5/xmlrpclib.pyR\scCsS|djp
|djo|iit|ing|_|dj|_dS(NtarraytstructR((RRtlenRRt_value(RRhtattrs((s%/usr/local/lib/python2.5/xmlrpclib.pyRW s	cCs|ii|dS(N(RR(Rttext((s%/usr/local/lib/python2.5/xmlrpclib.pyR'scCsDy|i|}Wntj
onX||||idSdS(NRH(RRlR(RRhRR((s%/usr/local/lib/python2.5/xmlrpclib.pyRY*s
cCs8y|i|}Wntj
onX|||SdS(N(RRl(RRhRR((s%/usr/local/lib/python2.5/xmlrpclib.pytend_dispatch6s
cCs|idd|_dS(Ni(RRLR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pytend_nilDs
tnilcCsR|djo|itn(|djo|itn
tdd|_dS(NRRsbad boolean valuei(RtFalsetTrueRR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pytend_booleanIs

	R3cCs |it|d|_dS(Ni(RRR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pytend_intSsti4RcCs |it|d|_dS(Ni(RtfloatR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyt
end_doubleYstdoublecCs@|iot||i}n|it|d|_dS(Ni(RRRRR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyt
end_string^s
RtnamecCs3|ii}|i|g|i|)d|_dS(Ni(RtpopRR(RRtmark((s%/usr/local/lib/python2.5/xmlrpclib.pyt	end_arrayfsRcCs~|ii}h}|i|}x<tdt|dD]"}||d|t||<q;W|g|i|)d|_dS(Niii(RRRtrangeRRR(RRRtdictRR((s%/usr/local/lib/python2.5/xmlrpclib.pyt
end_structms
 RcCs0t}|i||i|d|_dS(Ni(RGRARR(RRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyt
end_base64xs	

RIcCsAt}|i||iot|}n|i|dS(N(R4RARRFR(RRR(((s%/usr/local/lib/python2.5/xmlrpclib.pytend_dateTimes
	

sdateTime.iso8601cCs|io|i|ndS(N(RR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyt	end_values
R(cCs
d|_dS(Ntparams(R(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyt
end_paramssRcCs
d|_dS(NR(R(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyt	end_faultsRcCs6|iot||i}n||_d|_dS(Nt
methodName(RRRR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pytend_methodNames
	R(RRRRRdRR\RWRRRRYRRRRRRRRRRRRRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRsL							
	
	

	
	

	
		
	
	
	
	
	
	t_MultiCallMethodcBs#eZdZdZdZRS(cCs||_||_dS(N(t_MultiCallMethod__call_listt_MultiCallMethod__name(Rt	call_listR((s%/usr/local/lib/python2.5/xmlrpclib.pyRs	cCst|id|i|fS(Ns%s.%s(RRR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyt__getattr__scGs|ii|i|fdS(N(RRR(Rtargs((s%/usr/local/lib/python2.5/xmlrpclib.pyt__call__s(RRRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRs		tMultiCallIteratorcBs eZdZdZdZRS(saIterates over the results of a multicall. Exceptions are
    thrown in response to xmlrpc faults.cCs
||_dS(N(tresults(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCss|i|}t|thjot|d|dn/t|tgjo|dSn
tddS(NR"R#is#unexpected type in multicall result(RRR!R(RRtitem((s%/usr/local/lib/python2.5/xmlrpclib.pyt__getitem__s
(RRRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRs	t	MultiCallcBs8eZdZdZdZeZdZdZRS(s}server -> a object used to boxcar method calls

    server should be a ServerProxy object.

    Methods can be added to the MultiCall using normal
    method call syntax e.g.:

    multicall = MultiCall(server_proxy)
    multicall.add(2,3)
    multicall.get_address("Guido")

    To execute the multicall, call the MultiCall object e.g.:

    add_result, address = multicall()
    cCs||_g|_dS(N(t_MultiCall__servert_MultiCall__call_list(Rtserver((s%/usr/local/lib/python2.5/xmlrpclib.pyRs	cCsdt|S(Ns<MultiCall at %x>(R/(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCst|i|S(N(RR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCsXg}x6|iD]+\}}|ih|d<|d<qWt|iii|S(NRR(RRRRtsystemt	multicall(Rtmarshalled_listRR((s%/usr/local/lib/python2.5/xmlrpclib.pyRs

#(RRRRRRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRs			cCs|oto
tdntoFto?|o
t}nt}tttt|t	}t|}nat
d|}tot|}n;tot|}n$tot|}n
t
|}||fS(sgetparser() -> parser, unmarshaller

    Create an instance of the fastest available parser, and attach it
    to an unmarshalling object.  Return both objects.
    s$the datetime module is not availableR(R6Rt
FastParsertFastUnmarshallerRFRBRRRMR!RRORpRx(Rt
mkdatetimeRcR_((s%/usr/local/lib/python2.5/xmlrpclib.pyt	getparsers"

cCs`t|tpt|tp
tdt|to
d}n9|o1t|to!t|djp
tdn|p
d}ntot|}nt||}|i|}|djodt|}nd}|o?t|t	p|i
|}n|d|d|d	f}n"|o|d
|df}n|Sti|dS(
sdata [,options] -> marshalled data

    Convert an argument tuple or a Fault instance to an XML-RPC
    request (or response, if the methodresponse option is used).

    In addition to the data object, the following options can be given
    as keyword arguments:

        methodname: the method name for a methodCall packet

        methodresponse: true to create a methodResponse packet.
        If this option is used with a tuple, the tuple must be
        a singleton (i.e. it can contain only one element).

        encoding: the packet encoding (default is UTF-8)

    All 8-bit strings in the data structure are assumed to use the
    packet encoding.  Unicode strings are automatically converted,
    where necessary.
    s(argument must be tuple or Fault instanceis"response tuple must be a singletonsutf-8s$<?xml version='1.0' encoding='%s'?>
s<?xml version='1.0'?>
s<methodCall>
<methodName>s</methodName>
s</methodCall>
s<methodResponse>
s</methodResponse>
RH(
R+R;R!tAssertionErrorRtFastMarshallerRRR?R5RRR(Rt
methodnametmethodresponseRRRjRt	xmlheader((s%/usr/local/lib/python2.5/xmlrpclib.pyRs<#
!



cCsBtd|\}}|i||i|i|ifS(sdata -> unmarshalled data, method name

    Convert an XML-RPC packet to unmarshalled data plus a method
    name (None if not present).

    If the XML-RPC packet represents a fault condition, this function
    raises a Fault exception.
    R(RRaRdR(RRtptu((s%/usr/local/lib/python2.5/xmlrpclib.pytloads`s	

t_MethodcBs#eZdZdZdZRS(cCs||_||_dS(N(t
_Method__sendt
_Method__name(RtsendR((s%/usr/local/lib/python2.5/xmlrpclib.pyRus	cCst|id|i|fS(Ns%s.%s(RRR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRxscGs|i|i|S(N(RR(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRzs(RRRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRrs		t	TransportcBseZdZdeZddZddZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZRS(s1Handles an HTTP transaction to an XML-RPC server.s'xmlrpclib.py/%s (by www.pythonware.com)icCs
||_dS(N(R(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRsc
Cs|i|}|o|idn|i||||i|||i||i|||i\}}}|djot|||||n||_y|i	i
}	Wntj
o
d}	nX|i
|i|	S(Nii(tmake_connectiontset_debugleveltsend_requestt	send_hosttsend_user_agenttsend_contenttgetreplyRtverboset_conntsocktAttributeErrorRLt_parse_responsetgetfile(
Rthostthandlertrequest_bodyR
thRRRR((s%/usr/local/lib/python2.5/xmlrpclib.pytrequests&


	cCstd|iS(NR(RR(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCsh}t|to|\}}nddk}|i|\}}|oVddk}|i|i|}titi	|d}dd|fg}nd}|||fS(NiRHt
AuthorizationsBasic (R+R;turllibt	splituserRItencodestringtunquoteRRtsplitRL(RRtx509RtauthRIt
extra_headers((s%/usr/local/lib/python2.5/xmlrpclib.pyt
get_host_infoscCs1ddk}|i|\}}}|i|S(Ni(thttplibRtHTTP(RRRRR((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCs|id|dS(NtPOST(t
putrequest(Rt
connectionRR((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCs~|i|\}}}|id||oKt|to|i}nx(|D]\}}|i||qVWndS(NtHost(Rt	putheaderR+RR(RR#RRRtkeyR(((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCs|id|idS(Ns
User-Agent(R%t
user_agent(RR#((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCsR|idd|idtt||i|o|i|ndS(NsContent-Typestext/xmlsContent-Length(R%R?Rt
endheadersR(RR#R((s%/usr/local/lib/python2.5/xmlrpclib.pyRs

cCs|i|dS(N(RRL(Rtfile((s%/usr/local/lib/python2.5/xmlrpclib.pytparse_responsescCs|i\}}xb|o|id}n|id}|pPn|iodGt|GHn|i|q|i|i|iS(Nisbody:(RtrecvtreadR
RRaRd(RR)RRRtresponse((s%/usr/local/lib/python2.5/xmlrpclib.pyR)s


(RRRt__version__R'RRRRRRRRRR*R(((s%/usr/local/lib/python2.5/xmlrpclib.pyRs
#			
						
	t
SafeTransportcBseZdZdZRS(s2Handles an HTTPS transaction to an XML-RPC server.cCsnddk}|i|\}}}y
|i}Wntj
otdnX||d|phSdS(Nis-your version of httplib doesn't support HTTPS(RRtHTTPSR
tNotImplementedErrorRL(RRRRRR0((s%/usr/local/lib/python2.5/xmlrpclib.pyRFs
(RRRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyR/AstServerProxycBsGeZdZddddddZdZdZeZdZRS(suri [,options] -> a logical connection to an XML-RPC server

    uri is the connection point on the server, given as
    scheme://host/target.

    The standard implementation always supports the "http" scheme.  If
    SSL socket support is available (Python 2.0), it also supports
    "https".

    If the target part and the slash preceding it are both omitted,
    "/RPC2" is assumed.

    The following options can be given as keyword arguments:

        transport: a transport factory
        encoding: the request encoding (default is UTF-8)

    All 8-bit strings passed to the server proxy are assumed to use
    the given encoding.
    ic	Csddk}|i|\}}|djo
tdn|i|\|_|_|ip
d|_n|djo3|djotd|}qtd|}n||_	||_
||_||_dS(Nithttpthttpssunsupported XML-RPC protocols/RPC2R(R3R4(
Rt	splittypetIOErrort	splithostt_ServerProxy__hostt_ServerProxy__handlerRLR/Rt_ServerProxy__transportt_ServerProxy__encodingt_ServerProxy__verboset_ServerProxy__allow_none(	Rturit	transportRR
RRRR((s%/usr/local/lib/python2.5/xmlrpclib.pyR{s





			cCsmt||d|id|i}|ii|i|i|d|i}t|djo|d}n|S(NRRR
ii(	RR;R=R:RR8R9R<R(RRRRR-((s%/usr/local/lib/python2.5/xmlrpclib.pyt	__requests	cCsd|i|ifS(Ns<ServerProxy for %s%s>(R8R9(R((s%/usr/local/lib/python2.5/xmlrpclib.pyRscCst|i|S(N(Rt_ServerProxy__request(RR((s%/usr/local/lib/python2.5/xmlrpclib.pyRsN(	RRRRLRRARRR(((s%/usr/local/lib/python2.5/xmlrpclib.pyR2es			t__main__shttp://time.xmlrpc.com/RPC2tERRORllll(((((((((((((((VRReRR9R&ttypesRt	NameErrorRLR6tImportErrorRRRRtcompileRfRRRRR.RRtPARSE_ERRORtSERVER_ERRORtAPPLICATION_ERRORtSYSTEM_ERRORtTRANSPORT_ERRORtNOT_WELLFORMED_ERRORtUNSUPPORTED_ENCODINGtINVALID_ENCODING_CHARtINVALID_XMLRPCtMETHOD_NOT_FOUNDtINVALID_METHOD_PARAMStINTERNAL_ERRORt	ExceptionRRR R!RR3R%RR4RBRFRIt	cStringIORKRGRMRt
_xmlrpclibtParserRRRR
RRR^thasattrROtxml.parsersRnRpRxRRRRRRRRR/R2tServerRtcurrentTimetgetCurrentTimeRtmultiR-(((s%/usr/local/lib/python2.5/xmlrpclib.pys<module>s0

	


2		
		

	$-(	N$Q






Man Man