3 \\&@sjdZddlZddlZddlZddlmZddlmZddlZddl Z ddl m Z ddl Z ddlmZy ddlZWnek rdZYnXddZd ejdd ZdYZd[Zd\Zd]Zd^Zd_Zd`ZdaZdbZdcZddZdeZ dfZ!dgZ"Gddde#Z$Gddde$Z%Gddde$Z&Gddde$Z'e(Z)Z*ed d d Z+e+j,dd krJd!d"Z-n"e+j,d#d krdd$d"Z-nd%d"Z-[+d&d'Z.Gd(d)d)Z/d*d+Z0d,d-Z1Gd.d/d/Z2d0d1Z3e/e2fZ4Gd2d3d3Z5Gd4d5d5Z6Gd6d7d7Z7Gd8d9d9Z8Gd:d;d;Z9GddidAdBZ?djdCdDZ@dEdFZAdkdHdIZBGdJdKdKerXejCneDZEGdLdMdMZFGdNdOdOZGGdPdQdQeGZHGdRdSdSZIeIZJeKdTkrfeIdUZLyeMeLjNjOWn.e$k rZPzeMdVePWYddZP[PXnXe:eLZQeQjReQjSd dWeQjTd d yxeQD]ZUeMeUq"WWn.e$k rdZPzeMdVePWYddZP[PXnXdS)la 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 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 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: (none) Exported functions: 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). N)datetime)Decimal)expat)BytesIOcCs$|jdd}|jdd}|jddS)N&z&z>)replace)sr /usr/lib64/python3.6/client.pyescapes  r z%d.%diiXi~i~i,~iiiYiZi[c@seZdZdZddZdS)ErrorzBase class for client errors.cCst|S)N)repr)selfr r r __str__sz Error.__str__N)__name__ __module__ __qualname____doc__rr r r r rsrc@s eZdZdZddZddZdS) ProtocolErrorz!Indicates an HTTP protocol error.cCs&tj|||_||_||_||_dS)N)r__init__urlerrcodeerrmsgheaders)rrrrrr r r rs  zProtocolError.__init__cCsd|jj|j|j|jfS)Nz<%s for %s: %s %s>) __class__rrrr)rr r r __repr__szProtocolError.__repr__N)rrrrrr r r r r rsrc@seZdZdZdS) ResponseErrorz$Indicates a broken response package.N)rrrrr r r r r!sr!c@s eZdZdZddZddZdS)Faultz#Indicates an XML-RPC fault package.cKstj|||_||_dS)N)rr faultCode faultString)rr#r$Zextrar r r rs zFault.__init__cCsd|jj|j|jfS)Nz <%s %s: %r>)rrr#r$)rr r r r szFault.__repr__N)rrrrrr r r r r r"sr"z%YZ0001cCs |jdS)Nz%Y%m%dT%H:%M:%S)strftime)valuer r r _iso8601_format sr'z%4YcCs |jdS)Nz%4Y%m%dT%H:%M:%S)r%)r&r r r r'scCs|jdjdS)Nz%Y%m%dT%H:%M:%S)r%zfill)r&r r r r'scCsLt|trt|St|ttjfs<|dkr2tj}tj|}d|ddS)Nrz%04d%02d%02dT%02d:%02d:%02d) isinstancerr'tupletimeZ struct_timeZ localtime)r&r r r _strftimes  r.c@sreZdZdZdddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZddZdS)DateTimezDateTime wrapper for an ISO 8601 string or time tuple or localtime integer value to generate 'dateTime.iso8601' XML-RPC value. rcCs t|tr||_n t||_dS)N)r+strr&r.)rr&r r r r)s zDateTime.__init__cCst|tr|j}|j}nzt|tr2|j}t|}n`t|trH|j}|}nJt|drd|j}|j}n.t|drv|jj p|t |}t d|jj |f||fS)N timetuplerzCan't compare %s and %s) r+r/r&rr'r0hasattrr1rrtype TypeError)rotherr oZotyper r r make_comparable/s$       zDateTime.make_comparablecCs|j|\}}||kS)N)r7)rr5r r6r r r __lt__DszDateTime.__lt__cCs|j|\}}||kS)N)r7)rr5r r6r r r __le__HszDateTime.__le__cCs|j|\}}||kS)N)r7)rr5r r6r r r __gt__LszDateTime.__gt__cCs|j|\}}||kS)N)r7)rr5r r6r r r __ge__PszDateTime.__ge__cCs|j|\}}||kS)N)r7)rr5r r6r r r __eq__TszDateTime.__eq__cCstj|jdS)Nz%Y%m%dT%H:%M:%S)r-strptimer&)rr r r r1XszDateTime.timetuplecCs|jS)N)r&)rr r r r`szDateTime.__str__cCsd|jj|jt|fS)Nz<%s %r at %#x>)rrr&id)rr r r r cszDateTime.__repr__cCst|j|_dS)N)r0stripr&)rdatar r r decodefszDateTime.decodecCs$|jd|j|j|jddS)Nzz )writer&)routr r r encodeis  zDateTime.encodeN)r)rrrrrr7r8r9r:r;r<r1rr rArDr r r r r/#s r/cCst}|j||S)N)r/rA)r@r&r r r _datetimens rEcCs tj|dS)Nz%Y%m%dT%H:%M:%S)rr=)r@r r r _datetime_typetsrFc@s:eZdZdZd ddZddZddZd d Zd d ZdS)BinaryzWrapper for binary data.NcCs>|dkrd}n&t|ttfs,td|jjt|}||_dS)Nz#expected bytes or bytearray, not %s)r+bytes bytearrayr4rrr@)rr@r r r rs zBinary.__init__cCs t|jdS)Nzlatin-1)r0r@)rr r r rszBinary.__str__cCst|tr|j}|j|kS)N)r+rGr@)rr5r r r r<s z Binary.__eq__cCstj||_dS)N)base64 decodebytesr@)rr@r r r rAsz Binary.decodecCs4|jdtj|j}|j|jd|jddS)Nz asciiz )rBrK encodebytesr@rA)rrCencodedr r r rDs  z Binary.encode)N) rrrrrrr<rArDr r r r rG}s  rGcCst}|j||S)N)rGrA)r@r&r r r _binarys rPc@s$eZdZddZddZddZdS) ExpatParsercCsDtjdd|_}||_|j|_|j|_|j|_ d}|j |ddS)N) rZ ParserCreate_parser_targetstartZStartElementHandlerendZEndElementHandlerr@ZCharacterDataHandlerxml)rtargetparserencodingr r r rszExpatParser.__init__cCs|jj|ddS)Nr)rRParse)rr@r r r feedszExpatParser.feedc Cs8y |j}Wntk rYnX|`|`|jdddS)NrHT)rRAttributeErrorrSrZ)rrXr r r closes  zExpatParser.closeN)rrrrr[r]r r r r rQs rQc@seZdZdZdddZiZddZdd Zd d Zeee d<d d Z e ee <ddZ e ee <e ZddZeee<efddZeee<ddZeee<eee<ddZeee<eee<efddZeee<ddZeee<ddZeee<eee <eed<dS) MarshalleravGenerate 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. NFcCsi|_d|_||_||_dS)N)memor@rY allow_none)rrYr`r r r rszMarshaller.__init__cCsg}|j}|j}t|tr@|d||j|jd||dn8|dx&|D]}|d||||dqNW|ddj|}|S) Nz )r#r$z z z z z )append_Marshaller__dumpr+r"r#r$join)rvaluesrCrBdumpvresultr r r dumpss"      zMarshaller.dumpsc Csy|jt|}Wnjtk r|t|ds)r`r4)rr&rBr r r dump_nilszMarshaller.dump_nilcCs$|d||rdpd|ddS)Nz10z r )rr&rBr r r dump_boolszMarshaller.dump_boolcCs<|tks|tkrtd|d|tt||ddS)Nzint exceeds XML-RPC limitsz z )MAXINTMININT OverflowErrorr0int)rr&rBr r r dump_longs zMarshaller.dump_longcCs |d|t||ddS)Nzz )r)rr&rBr r r dump_double%s zMarshaller.dump_doublecCs |d||||ddS)Nzz r )rr&rBr r r r dump_unicode+s zMarshaller.dump_unicodecCs,|dtj|}||jd|ddS)Nz rMz )rKrNrA)rr&rBrOr r r dump_bytes1s zMarshaller.dump_bytescCs^t|}||jkrtdd|j|<|j}|dx|D]}|||q8W|d|j|=dS)Nz"cannot marshal recursive sequencesz z )r>r_r4rc)rr&rBirfrgr r r dump_array9s   zMarshaller.dump_arraycCst|}||jkrtdd|j|<|j}|dxP|jD]D\}}|dt|ts^td|d||||||dq z zdictionary key must be stringz%s z z )r>r_r4rcitemsr+r0)rr&rBr r}rfkrgr r r dump_structGs     zMarshaller.dump_structcCs |d|t||ddS)Nzz )r.)rr&rBr r r dump_datetimeYs zMarshaller.dump_datetimecCs2|jtkr ||_|j||`n|j|j|dS)N)rWRAPPERSrBrDrrj)rr&rBr r r dump_instance_s   zMarshaller.dump_instancerk)NF)!rrrrrrlrircrqr3rtboolryrxZdump_intrzfloatr r{r0r|rIrJr~r,listrdictrrrr/rGr r r r r^s<      r^c@sneZdZdZdEddZddZddZd d Zd d Zd dZ ddZ ddZ iZ ddZ e e d<ddZee d<ddZee d<ee d<ee d<ee d<ee d<ee d <d!d"Zee d#<ee d$<d%d&Zee d'<d(d)Zee d*<ee d+<d,d-Zee d.<d/d0Zee d1<d2d3Zee d4<d5d6Zee d7<d8d9Zee d:<d;d<Zee d=<d>d?Zee d@<dAdBZee dC<dDS)F UnmarshalleraUnmarshal 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). FcCsHd|_g|_g|_g|_d|_d|_d|_|jj|_|p:||_||_ dS)NFzutf-8) _type_stack_marks_data_value _methodname _encodingrb _use_datetime _use_bytes)r use_datetimeuse_builtin_typesr r r rs  zUnmarshaller.__init__cCs:|jdks|jrt|jdkr0tf|jdt|jS)Nfaultr)rrr!r"rr,)rr r r r]s  zUnmarshaller.closecCs|jS)N)r)rr r r getmethodnameszUnmarshaller.getmethodnamecCs ||_dS)N)r)rrYZ standaloner r r rVszUnmarshaller.xmlcCshd|kr|jdd}|dks&|dkr8|jjt|jg|_|jrZ||jkrZtd||dk|_dS)N:rarraystructzunknown tag %rr&) splitrrblenrrrrlr!)rtagZattrsr r r rTs zUnmarshaller.startcCs|jj|dS)N)rrb)rtextr r r r@szUnmarshaller.datacCspy|j|}WnNtk r\d|kr*dSy|j|jdd}Wntk rVdSXYnX||dj|jS)Nrrrar)rlrmrrdr)rrrpr r r rUs zUnmarshaller.endcCshy|j|}WnNtk r\d|kr*dSy|j|jdd}Wntk rVdSXYnX|||S)Nrrr)rlrmr)rrr@rpr r r end_dispatchs zUnmarshaller.end_dispatchcCs|jdd|_dS)Nr)rbr)rr@r r r end_nils zUnmarshaller.end_nilZnilcCs:|dkr|jdn|dkr(|jdntdd|_dS)NrsFrrTzbad boolean valuer)rbr4r)rr@r r r end_booleans   zUnmarshaller.end_booleanbooleancCs|jt|d|_dS)Nr)rbrxr)rr@r r r end_intszUnmarshaller.end_intZi1Zi2Zi4Zi8rxZ bigintegercCs|jt|d|_dS)Nr)rbrr)rr@r r r end_doubleszUnmarshaller.end_doubleZdoublercCs|jt|d|_dS)Nr)rbrr)rr@r r r end_bigdecimalszUnmarshaller.end_bigdecimalZ bigdecimalcCs&|jr|j|j}|j|d|_dS)Nr)rrArbr)rr@r r r end_strings  zUnmarshaller.end_stringstringnamecCs.|jj}|j|dg|j|d<d|_dS)Nr)rpoprr)rr@markr r r end_arrays zUnmarshaller.end_arrayrcCsd|jj}i}|j|d}x,tdt|dD]}||d|||<q.W|g|j|d<d|_dS)Nrrr)rrrrangerr)rr@rrrr}r r r end_structs zUnmarshaller.end_structrcCs6t}|j|jd|jr"|j}|j|d|_dS)NrMr)rGrArDrr@rbr)rr@r&r r r end_base64 s  zUnmarshaller.end_base64rKcCs,t}|j||jrt|}|j|dS)N)r/rArrFrb)rr@r&r r r end_dateTimes  zUnmarshaller.end_dateTimezdateTime.iso8601cCs|jr|j|dS)N)rr)rr@r r r end_valueszUnmarshaller.end_valuer&cCs d|_dS)Nparams)r)rr@r r r end_params#szUnmarshaller.end_paramsrcCs d|_dS)Nr)r)rr@r r r end_fault'szUnmarshaller.end_faultrcCs"|jr|j|j}||_d|_dS)N methodName)rrArr)rr@r r r end_methodName+s zUnmarshaller.end_methodNamerN)FF)rrrrrr]rrVrTr@rUrrlrrrrrrrrrrrrrrr r r r rssZ   rc@s$eZdZddZddZddZdS)_MultiCallMethodcCs||_||_dS)N)_MultiCallMethod__call_list_MultiCallMethod__name)rZ call_listrr r r r8sz_MultiCallMethod.__init__cCst|jd|j|fS)Nz%s.%s)rrr)rrr r r __getattr__;sz_MultiCallMethod.__getattr__cGs|jj|j|fdS)N)rrbr)rargsr r r __call__=sz_MultiCallMethod.__call__N)rrrrrrr r r r r5src@s eZdZdZddZddZdS)MultiCallIteratorzaIterates over the results of a multicall. Exceptions are raised in response to xmlrpc faults.cCs ||_dS)N)results)rrr r r rDszMultiCallIterator.__init__cCsR|j|}t|tikr.t|d|dn t|tgkrF|dStddS)Nr#r$rz#unexpected type in multicall result)rr3r" ValueError)rr}itemr r r __getitem__Gs  zMultiCallIterator.__getitem__N)rrrrrrr r r r r@src@s4eZdZdZddZddZeZddZdd Zd S) MultiCalla~server -> an 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)_MultiCall__server_MultiCall__call_list)rserverr r r raszMultiCall.__init__cCsd|jjt|fS)Nz <%s at %#x>)rrr>)rr r r r eszMultiCall.__repr__cCs t|j|S)N)rr)rrr r r rjszMultiCall.__getattr__cCs:g}x"|jD]\}}|j||dq Wt|jjj|S)N)rr)rrbrrsystemZ multicall)rZmarshalled_listrrr r r rmszMultiCall.__call__N) rrrrrr rrrr r r r rPs rFcCsrtrHtrH|rt}tj}n|r&t}t}nt}t}tdd||t}t|}n"t||d}trbt|}nt |}||fS)zgetparser() -> parser, unmarshaller Create an instance of the fastest available parser, and attach it to an unmarshalling object. Return both objects. TF)rr) FastParserFastUnmarshallerrFrKrLrPrEr"rrQ)rrZ mkdatetimeZmkbytesrWrXr r r getparsers    rcCst|trd}n|rt|tr|s&d}tr4t|}n t||}|j|}|dkr^dt|}nd}|rx|d|d|df}n|r|d|d f}n|Sd j|S) adata [,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 byte strings in the data structure are assumed to use the packet encoding. Unicode strings are automatically converted, where necessary. rzutf-8z$ z z z z z z ra)r+r"r,FastMarshallerr^rir0rd)r methodnameZmethodresponserYr`mr@Z xmlheaderr r r ris2    ricCs2t||d\}}|j||j|j|jfS)zdata -> 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. )rr)rr[r]r)r@rrpur r r loadss  rc Cs<tstt}tjd|dd}|j|WdQRX|jS)zhdata -> gzip encoded data Encode data using the gzip content encoding as described in RFC 1952 wbr)modefileobjZ compresslevelN)gzipNotImplementedErrorrGzipFilerBgetvalue)r@rpgzfr r r gzip_encodes r@cCststtjdt|dH}y$|dkr0|j}n|j|d}Wntk r\tdYnXWdQRX|dkrt||krtd|S)zrgzip encoded data -> unencoded data Decode data using the gzip content encoding as described in RFC 1952 rb)rrrrz invalid dataNz#max gzipped payload length exceeded)rrrrreadOSErrorrr)r@Z max_decoderZdecodedr r r gzip_decodes rc@s eZdZdZddZddZdS)GzipDecodedResponsezha file-like object to decode a response encoded with the gzip method, as described in RFC 1952. cCs.tstt|j|_tjj|d|jddS)Nr)rr)rrrriorr)rresponser r r r=szGzipDecodedResponse.__init__c Cs"ztjj|Wd|jjXdS)N)rrr]r)rr r r r]EszGzipDecodedResponse.closeN)rrrrrr]r r r r r9src@s$eZdZddZddZddZdS)_MethodcCs||_||_dS)N) _Method__send _Method__name)rsendrr r r rRsz_Method.__init__cCst|jd|j|fS)Nz%s.%s)rrr)rrr r r rUsz_Method.__getattr__cGs|j|j|S)N)rr)rrr r r rWsz_Method.__call__N)rrrrrrr r r r rOsrc@s~eZdZdZdeZdZdZdddZddd Z dd d Z d d Z ddZ ddZ ddZddZddZddZddZdS) Transportz1Handles an HTTP transaction to an XML-RPC server.zPython-xmlrpc/%sTNFcCs||_||_d|_g|_dS)N)NN)r_use_builtin_types _connection_extra_headers)rrrr r r rnszTransport.__init__cCs~xxdD]p}y|j||||Stjjk r8|r4Yqtk rt}z"|sb|jtjtjtjfkrdWYdd}~XqXqWdS)Nrr)rr) single_requesthttpclientZRemoteDisconnectedrerrnoZ ECONNRESETZ ECONNABORTEDZEPIPE)rhosthandler request_bodyverboser}er r r request~s  zTransport.requestcCsy6|j||||}|j}|jdkr4||_|j|SWn2tk rLYntk rh|jYnX|jddr~|j t |||j|j t |j dS)Nzcontent-lengthra) send_requestZ getresponseZstatusrparse_responser" Exceptionr] getheaderrrreasonrZ getheaders)rrrrrZ http_connZrespr r r rs"  zTransport.single_requestcCst|j|jdS)N)rr)rrr)rr r r rszTransport.getparsercCsri}t|tr|\}}tjj|\}}|rdtjj|}tj|jd}dj |j }dd|fg}ng}|||fS)Nzutf-8raZ AuthorizationzBasic ) r+r,urllibparseZ splituserZunquote_to_bytesrKrNrArdr)rrx509ZauthZ extra_headersr r r get_host_infos  zTransport.get_host_infocCsL|jr||jdkr|jdS|j|\}|_}|tjj|f|_|jdS)Nrr)rrrrrZHTTPConnection)rrchostrr r r make_connections  zTransport.make_connectioncCs |j\}}|rd|_|jdS)N)NN)rr])rr connectionr r r r]s zTransport.closecCs|j|}|jdd}|r&|jd|jrLtrL|jd|dd|jd n |jd||jd |jd |jf|j|||j |||S) NrZPOSTT)Zskip_accept_encodingAccept-Encodingr Content-Typetext/xmlz User-Agent)rr)rr) rrZset_debuglevelaccept_gzip_encodingrZ putrequestrb user_agent send_headers send_content)rrrrdebugrrr r r rs        zTransport.send_requestcCs"x|D]\}}|j||qWdS)N) putheader)rrrkeyvalr r r r szTransport.send_headerscCsR|jdk r0|jt|kr0tr0|jddt|}|jdtt||j|dS)NzContent-EncodingrzContent-Length)encode_thresholdrrrrr0Z endheaders)rrrr r r rs  zTransport.send_contentcCst|dr*|jdddkr$t|}q.|}n|}|j\}}x2|jd}|sLP|jr`tdt||j|q 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. NF)rc Cstjj|\} }| dkr tdtjj|\|_|_|js@d|_|dkrz| dkr^t} d|i} nt} i} | f||d| }||_ |pd|_ ||_ ||_ dS) Nrhttpszunsupported XML-RPC protocolz/RPC2r)rrzutf-8)rr) rrZ splittyperZ splithost_ServerProxy__host_ServerProxy__handlerrr_ServerProxy__transport_ServerProxy__encoding_ServerProxy__verbose_ServerProxy__allow_none) rZuri transportrYrr`rrrr3rZ extra_kwargsr r r rs&  zServerProxy.__init__cCs|jjdS)N)rr])rr r r Z__closeszServerProxy.__closecCsPt|||j|jdj|jd}|jj|j|j||jd}t |dkrL|d}|S)N)rYr`xmlcharrefreplace)rrr) rirrrDrrrrrr)rrrrrr r r Z __requests   zServerProxy.__requestcCsd|jj|j|jfS)Nz <%s for %s%s>)rrrr)rr r r r szServerProxy.__repr__cCs t|j|S)N)r_ServerProxy__request)rrr r r rszServerProxy.__getattr__cCs.|dkr|jS|dkr|jStd|fdS)z|A workaround to get special attributes on the ServerProxy without interfering with the magic __getattr__ r]rzAttribute %r not foundN)_ServerProxy__closerr\)rattrr r r rs zServerProxy.__call__cCs|S)Nr )rr r r __enter__szServerProxy.__enter__cGs |jdS)N)r)rrr r r __exit__szServerProxy.__exit__)NNFFFF) rrrrrrrr rrrr r!r r r r rls r__main__zhttp://localhost:8000ZERROR liliiDii ipiԁiDiCiBiiii)FF)NNNF)FF)r)VrrKsysr-rdecimalrZ http.clientrZ urllib.parserZ xml.parsersrrrrr ImportErrorr version_infor rurvZ PARSE_ERRORZ SERVER_ERRORZAPPLICATION_ERRORZ SYSTEM_ERRORZTRANSPORT_ERRORZNOT_WELLFORMED_ERRORZUNSUPPORTED_ENCODINGZINVALID_ENCODING_CHARZINVALID_XMLRPCZMETHOD_NOT_FOUNDZINVALID_METHOD_PARAMSZINTERNAL_ERRORrrrr!r"rrZBooleanZ_day0r%r'r.r/rErFrGrPrrQr^rrrrrrrrrirrrrobjectrrrrrZServerrrr Z currentTimeZgetCurrentTimergZmultiZgetDatapowaddrr r r r s           K #!(C '  ' J  d)i