python (3.11.7)

(root)/
lib/
python3.11/
xmlrpc/
__pycache__/
server.cpython-311.opt-1.pyc

edZddlmZmZmZmZmZddlmZddl	m
Z
ddlmZddl
Z
ddlZddlZddlZddlZddlZddlZddlZ	ddlZn
#e$rdZYnwxYwd(dZd	ZGd
dZGdd
eZGddejeZGddeZGddeZGddejZ GddZ!GddeZ"Gddee!Z#Gddee!Z$e%dkrddl&Z&Gdd Z'ed!5Z(e()e*e()d"d#e(+e'd$e(,e-d%e-d&	e(.n&#e/$re-d'ej0dYnwxYwddddS#1swxYwYdSdS))aXML-RPC Servers.

This module can be used to create simple XML-RPC servers
by creating a server and either installing functions, a
class instance, or by extending the SimpleXMLRPCServer
class.

It can also be used to handle XML-RPC requests in a CGI
environment using CGIXMLRPCRequestHandler.

The Doc* classes can be used to create XML-RPC servers that
serve pydoc-style documentation in response to HTTP
GET requests. This documentation is dynamically generated
based on the functions and methods registered with the
server.

A list of possible usage patterns follows:

1. Install functions:

server = SimpleXMLRPCServer(("localhost", 8000))
server.register_function(pow)
server.register_function(lambda x,y: x+y, 'add')
server.serve_forever()

2. Install an instance:

class MyFuncs:
    def __init__(self):
        # make all of the sys functions available through sys.func_name
        import sys
        self.sys = sys
    def _listMethods(self):
        # implement this method so that system.listMethods
        # knows to advertise the sys methods
        return list_public_methods(self) + \
                ['sys.' + method for method in list_public_methods(self.sys)]
    def pow(self, x, y): return pow(x, y)
    def add(self, x, y) : return x + y

server = SimpleXMLRPCServer(("localhost", 8000))
server.register_introspection_functions()
server.register_instance(MyFuncs())
server.serve_forever()

3. Install an instance with custom dispatch method:

class Math:
    def _listMethods(self):
        # this method must be present for system.listMethods
        # to work
        return ['add', 'pow']
    def _methodHelp(self, method):
        # this method must be present for system.methodHelp
        # to work
        if method == 'add':
            return "add(2,3) => 5"
        elif method == 'pow':
            return "pow(x, y[, z]) => number"
        else:
            # By convention, return empty
            # string if no help is available
            return ""
    def _dispatch(self, method, params):
        if method == 'pow':
            return pow(*params)
        elif method == 'add':
            return params[0] + params[1]
        else:
            raise ValueError('bad method')

server = SimpleXMLRPCServer(("localhost", 8000))
server.register_introspection_functions()
server.register_instance(Math())
server.serve_forever()

4. Subclass SimpleXMLRPCServer:

class MathServer(SimpleXMLRPCServer):
    def _dispatch(self, method, params):
        try:
            # We are forcing the 'export_' prefix on methods that are
            # callable through XML-RPC to prevent potential security
            # problems
            func = getattr(self, 'export_' + method)
        except AttributeError:
            raise Exception('method "%s" is not supported' % method)
        else:
            return func(*params)

    def export_add(self, x, y):
        return x + y

server = MathServer(("localhost", 8000))
server.serve_forever()

5. CGI script:

server = CGIXMLRPCRequestHandler()
server.register_function(pow)
server.handle_request()
)Faultdumpsloadsgzip_encodegzip_decode)BaseHTTPRequestHandler)partial)	signatureNTc|r|d}n|g}|D]9}|drtd|zt||}:|S)aGresolve_dotted_attribute(a, 'b.c.d') => a.b.c.d

    Resolves a dotted attribute name to an object.  Raises
    an AttributeError if any attribute in the chain starts with a '_'.

    If the optional allow_dotted_names argument is false, dots are not
    supported and this function operates similar to getattr(obj, attr).
    ._z(attempt to access private attribute "%s")split
startswithAttributeErrorgetattr)objattrallow_dotted_namesattrsis     A/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/xmlrpc/server.pyresolve_dotted_attributer|sw

3
!!<<	! :Q>
#a..CCJc:fdtDS)zkReturns a list of attribute strings, found in the specified
    object, which represent callable attributescxg|]6}|dtt|4|7S)r
)rcallabler).0memberrs  r
<listcomp>z'list_public_methods.<locals>.<listcomp>sU444v((--4WS&11224F444r)dir)rs`rlist_public_methodsr!s34444S4444rc`eZdZdZ		ddZddZddZdZdZdd	Z	d
Z
dZdZd
Z
dZdS)SimpleXMLRPCDispatchera&Mix-in class that dispatches XML-RPC requests.

    This class is used to register XML-RPC method handlers
    and then to dispatch them. This class doesn't need to be
    instanced directly when used by SimpleXMLRPCServer but it
    can be instanced when used by the MultiPathXMLRPCServer
    FNcPi|_d|_||_|pd|_||_dSNutf-8)funcsinstance
allow_noneencodinguse_builtin_typesselfr)r*r+s    r__init__zSimpleXMLRPCDispatcher.__init__s1

$ +G
!2rc"||_||_dS)aRegisters an instance to respond to XML-RPC requests.

        Only one instance can be installed at a time.

        If the registered instance has a _dispatch method then that
        method will be called with the name of the XML-RPC method and
        its parameters as a tuple
        e.g. instance._dispatch('add',(2,3))

        If the registered instance does not have a _dispatch method
        then the instance will be searched to find a matching method
        and, if found, will be called. Methods beginning with an '_'
        are considered private and will not be called by
        SimpleXMLRPCServer.

        If a registered function matches an XML-RPC request, then it
        will be called instead of the registered instance.

        If the optional allow_dotted_names argument is true and the
        instance does not have a _dispatch method, method names
        containing dots are supported and resolved, as long as none of
        the name segments start with an '_'.

            *** SECURITY WARNING: ***

            Enabling the allow_dotted_names options allows intruders
            to access your module's global variables and may allow
            intruders to execute arbitrary code on your machine.  Only
            use this option on a secure, closed network.

        N)r(r)r-r(rs   rregister_instancez(SimpleXMLRPCDispatcher.register_instancesB!
"4rc\|t|j|S||j}||j|<|S)zRegisters a function to respond to XML-RPC requests.

        The optional name argument can be used to set a Unicode name
        for the function.
        N)name)r	register_function__name__r')r-functionr2s   rr3z(SimpleXMLRPCDispatcher.register_functions>41====<$D#
4rc`|j|j|j|jddS)zRegisters the XML-RPC introspection methods in the system
        namespace.

        see http://xmlrpc.usefulinc.com/doc/reserved.html
        )zsystem.listMethodszsystem.methodSignaturezsystem.methodHelpN)r'updatesystem_listMethodssystem_methodSignaturesystem_methodHelpr-s r register_introspection_functionsz7SimpleXMLRPCDispatcher.register_introspection_functionssJ	
$2I151L,0,BDD	E	E	E	E	ErcH|jd|jidS)zRegisters the XML-RPC multicall method in the system
        namespace.

        see http://www.xmlrpc.com/discuss/msgReader$1208zsystem.multicallN)r'r7system_multicallr;s rregister_multicall_functionsz3SimpleXMLRPCDispatcher.register_multicall_functionss)	
-0EFGGGGGrc		t||j\}}|
|||}n|||}|f}t|d|j|j}n#t$r&}t||j|j}Yd}~nVd}~wt$rF}tt
dt|d||j|j}Yd}~nd}~wwxYw|	|jdS)	aDispatches an XML-RPC method from marshalled (XML) data.

        XML-RPC methods are dispatched from the marshalled (XML) data
        using the _dispatch method and the result is returned as
        marshalled data. For backwards compatibility, a dispatch
        function can be provided as an argument (see comment in
        SimpleXMLRPCRequestHandler.do_POST) but overriding the
        existing method through subclassing is the preferred means
        of changing method dispatch behavior.
        )r+N)methodresponser)r*)r)r*:r*r)xmlcharrefreplace)
rr+	_dispatchrr)r*r
BaseExceptiontypeencode)	r-datadispatch_methodpathparamsmethodresponsefaultexcs	         r_marshaled_dispatchz*SimpleXMLRPCDispatcher._marshaled_dispatchs7	"44;QRRRNFF**?66::>>&&99 {HXa(,$-QQQHH	5	5	5Ut&*m555HHHHHH			aDIIIIss3444?HHHHHH	t}.ABBBs$AA!!
C+B
C<CCcjt|j}|jxt	|jdr*|t|jz}n9t	|jds$|tt
|jz}t|S)zwsystem.listMethods() => ['add', 'subtract', 'multiple']

        Returns a list of the methods supported by the server.N_listMethodsrF)setr'keysr(hasattrrTr!sorted)r-methodss  rr8z)SimpleXMLRPCDispatcher.system_listMethodss
djoo''((=$t}n55
C3t}99;;<<<T]K88
C324=AABBBgrcdS)a#system.methodSignature('add') => [double, int, int]

        Returns a list describing the signature of the method. In the
        above example, the add method takes two integers as arguments
        and returns a double result.

        This server does NOT support system.methodSignature.zsignatures not supported)r-method_names  rr9z-SimpleXMLRPCDispatcher.system_methodSignature)s
*)rcTd}||jvr|j|}nx|jqt|jdr|j|St|jds-	t	|j||j}n#t$rYnwxYw|dStj|S)zsystem.methodHelp('add') => "Adds two integers together"

        Returns a string containing documentation for the specified method.N_methodHelprF)	r'r(rWr^rrrpydocgetdoc)r-r\rNs   rr:z(SimpleXMLRPCDispatcher.system_methodHelp6s
$*$$Z,FF
]
&t}m44
}00===T]K88
5 $
 + $ 7""FF
&D
>2<'''s&B
BBctg}|D]}|d}|d}	||||g>#t$r,}||j|jdYd}~od}~wt
$r4}|dt
|d|dYd}~d}~wwxYw|S)zsystem.multicall([{'methodName': 'add', 'params': [2, 2]}, ...]) => [[4], ...]

        Allows the caller to package multiple XML-RPC calls into a single
        request.

        See http://www.xmlrpc.com/discuss/msgReader$1208
        
methodNamerM)	faultCodefaultStringNrArC)appendrFrrdrerGrH)r-	call_listresultscallr\rMrPrQs        rr>z'SimpleXMLRPCDispatcher.system_multicallUs,		D|,K(^F

{F C CDEEEE


#(?%*%688!


#$04S				33%?AA

s#*A
B5
"A44
B5*B00B5cj	|j|}|||Std|z#t$rYnwxYw|jdt	|jdr|j||S	t
|j||j}|||Sn#t$rYnwxYwtd|z)aDispatches the XML-RPC method.

        XML-RPC calls are forwarded to a registered function that
        matches the called XML-RPC method name. If no such function
        exists then the call is forwarded to the registered instance,
        if available.

        If the registered instance has a _dispatch method then that
        method will be called with the name of the XML-RPC method and
        its parameters as a tuple
        e.g. instance._dispatch('add',(2,3))

        If the registered instance does not have a _dispatch method
        then the instance will be searched to find a matching method
        and, if found, will be called.

        Methods beginning with an '_' are considered private and will
        not be called.
        Nzmethod "%s" is not supportedrF)	r'	ExceptionKeyErrorr(rWrFrrr)r-rNrMfuncs    rrFz SimpleXMLRPCDispatcher._dispatchts*	E:f%DtV}$:VCDDD			D	=$t}k22
?}..vv>>>

)/M+#4=($"



6?@@@s
(
550B
B B FNF)FNN)r4
__module____qualname____doc__r.r0r3r<r?rRr8r9r:r>rFr[rrr#r#s37#(3333"5"5"5"5H 	E	E	EHHH!C!C!C!CF$***(((>>1A1A1A1A1Arr#ceZdZdZdZdZdZdZej	dej
ejzZdZ
dZd	Zd
ZdZdd
ZdS)SimpleXMLRPCRequestHandlerzSimple XML-RPC request handler class.

    Handles all HTTP POST requests and attempts to decode them as
    XML-RPC requests.
    )/z/RPC2
/pydoc.cssixTz
                            \s* ([^\s;]+) \s*            #content-coding
                            (;\s* q \s*=\s* ([0-9\.]+))? #q
                            c(i}|jdd}|dD]^}|j|}|r@|d}|rt
|nd}|||d<_|S)NzAccept-Encodingr_,g?rA)headersgetr	aepatternmatchgroupfloat)r-raeer~vs      raccept_encodingsz+SimpleXMLRPCRequestHandler.accept_encodingss
\

/
4
4#	&	&AN((++E
&KKNN !*E!HHHs$%%++a..!rc0|jr|j|jvSdS)NT)	rpc_pathsrLr;s ris_rpc_path_validz,SimpleXMLRPCRequestHandler.is_rpc_path_valids">	9..4rc|s|dS	d}t|jd}g}|r\t	||}|j|}|sn/|||t|dz}|\d	|}|
|}|dS|j|t|dd|j}|d|dd	|jyt||jkra|d
d}|r7	t)|}|dd
n#t*$rYnwxYw|d
t-t|||j|dS#t4$r}	|dt7|jdr||jjrp|dt-|	t;j}
t-|
ddd}
|d|
|d
d|Yd}	~	dSd}	~	wwxYw)zHandles the HTTP POST request.

        Attempts to interpret all HTTP POST requests as XML-RPC calls,
        which are forwarded to the server's _dispatch method for handling.
        Nizcontent-lengthrwrrFContent-typeztext/xmlgziprzContent-EncodingContent-lengthi_send_traceback_headerzX-exceptionASCIIbackslashreplacezX-traceback0) r
report_404intr{minrfilereadrflenjoindecode_request_contentserverrRrrL
send_responsesend_headerencode_thresholdrr|rNotImplementedErrorstrend_headerswfilewriterkrWr	traceback
format_excrI)r-max_chunk_sizesize_remainingL
chunk_sizechunkrJrOqrtraces           rdo_POSTz"SimpleXMLRPCRequestHandler.do_POSTs%%''	OOF9	'
*N .>!?@@NA 
- @@


33#ae**,
!
-88A;;D..t44D|{66'$T::DIH$
s###^Z888$0x==4#888--//33FA>>A!!'28'<'<H ,,-?HHHH2!!! D!-s3x==/A/ABBBJX&&&&&9
	
	
	s###t{$<==
7K6
7  A777!,..ELL2DEEwOO  666-s333
	s1B(H0H;%F!!
F.-F.
K6CK11K6c|jdd}|dkr|S|dkrZ	t|S#t$r|dd|zYn>t$r|ddYnwxYw|dd|z|dd	|dS)
Nzcontent-encodingidentityrizencoding %r not supportedzerror decoding gzip contentrr)	r{r|lowerrrr
ValueErrorrr)r-rJr*s   rrz1SimpleXMLRPCRequestHandler.decode_request_contents<##$6
CCIIKKz!!Kv
G"4(((&
P
P
P""3(Ch(NOOOOO
G
G
G""3(EFFFFF
G
s$?($JKKK)3///sA#B1BBc|dd}|dd|dtt|||j|dS)NisNo such pagerz
text/plainr)rrrrrrrr-rOs  rrz%SimpleXMLRPCRequestHandler.report_404*s3"666)3s8}}+=+=>>>
"""""r-cN|jjrtj|||dSdS)z$Selectively log an accepted request.N)rlogRequestsrlog_request)r-codesizes   rrz&SimpleXMLRPCRequestHandler.log_request3s9;"	A".tT4@@@@@	A	ArN)rr)r4rprqrrrrwbufsizedisable_nagle_algorithmrecompileVERBOSE
IGNORECASEr}rrrrrrr[rrrtrts-IH"
 "$bm!;==I
			E'E'E'N"###AAAAAArrtc.eZdZdZdZdZedddddfdZdS)SimpleXMLRPCServeragSimple XML-RPC server.

    Simple XML-RPC server that allows functions and a single instance
    to be installed to handle requests. The default implementation
    attempts to dispatch XML-RPC calls to the functions or instance
    installed in the server. Override the _dispatch method inherited
    from SimpleXMLRPCDispatcher to change this behavior.
    TFNc||_t||||tj||||dSN)rr#r.socketserver	TCPServerr-addrrequestHandlerrr)r*bind_and_activater+s        rr.zSimpleXMLRPCServer.__init__LsK'''j(DUVVV''dNDUVVVVVr)r4rprqrrallow_reuse_addressrrtr.r[rrrr9sW#,F!ed#'5WWWWWWrrc:eZdZdZedddddfdZdZdZd	dZdS)
MultiPathXMLRPCServera\Multipath XML-RPC Server
    This specialization of SimpleXMLRPCServer allows the user to create
    multiple Dispatcher instances and assign them to different
    HTTP request paths.  This makes it possible to run two or more
    'virtual XML-RPC servers' at the same port.
    Make sure that the requestHandler accepts the paths in question.
    TFNc
vt||||||||i|_||_|pd|_dSr%)rr.dispatchersr)r*rs        rr.zMultiPathXMLRPCServer.__init__]sQ	##D$Z$,.?AR	T	T	T$ +G


rc||j|<|Srr)r-rL
dispatchers   radd_dispatcherz$MultiPathXMLRPCServer.add_dispatchergs!+rc|j|Srr)r-rLs  rget_dispatcherz$MultiPathXMLRPCServer.get_dispatcherks%%rc	*	|j||||}nn#t$ra}tt	dt|d||j|j}||jd}Yd}~nd}~wwxYw|S)NrArCrDrE)	rrRrGrrrHr*r)rI)r-rJrKrLrOrQs      rrRz)MultiPathXMLRPCServer._marshaled_dispatchns
	K'-AA_d,,HH	K	K	KaDIIIIss3444?DDDH t}6IJJHHHHHH	Ks"%
BABBro)	r4rprqrrrtr.rrrRr[rrrrUsv-G!ed#'5,,,,&&&rrc.eZdZdZddZdZdZd	dZdS)
CGIXMLRPCRequestHandlerz3Simple handler for XML-RPC data passed through CGI.FNc@t||||dSr)r#r.r,s    rr.z CGIXMLRPCRequestHandler.__init__s#''j(DUVVVVVrcr||}tdtdt|zttjtjj|tjjdS)zHandle a single XML-RPC requestzContent-Type: text/xmlContent-Length: %dN)rRprintrsysstdoutflushbufferr)r-request_textrOs   r
handle_xmlrpcz%CGIXMLRPCRequestHandler.handle_xmlrpcs++L99
&'''
"S]]2333


)))
!!!!!rcd}tj|\}}tjj|||dz}|d}t
d||fzt
dtjjzt
dt|zt
tj
tj
j
|tj
jdS)zHandle a single HTTP GET request.

        Default implementation indicates an error because
        XML-RPC uses the POST method.
        r)rmessageexplainr&z
Status: %d %szContent-Type: %srN)r	responseshttprDEFAULT_ERROR_MESSAGErIrDEFAULT_ERROR_CONTENT_TYPErrrrrr)r-rrrrOs     r
handle_getz"CGIXMLRPCRequestHandler.handle_gets1;DA;4  

??7++
ow/000
 4;#IIJJJ
"S]]2333


)))
!!!!!rcz|:tjdddkr|dS	t	tjdd}n#t
tf$rd}YnwxYw|tj	|}|
|dS)zHandle a single XML-RPC request passed through a CGI post method.

        If no XML data is given then it is read from stdin. The resulting
        XML-RPC response is printed to stdout along with the correct HTTP
        headers.
        NREQUEST_METHODGETCONTENT_LENGTHrw)osenvironr|rrr	TypeErrorrstdinrr)r-rlengths   rhandle_requestz&CGIXMLRPCRequestHandler.handle_requestsJNN+T22e;;OO
RZ^^,<dCCDD	*



#"y~~f55|,,,,,s-A,,BBrnr)r4rprqrrr.rrrr[rrrr|sd==WWWW
"
"
""""2------rrc@eZdZdZdiiifdZdiiidfdZdZdZdS)
ServerHTMLDocz7Class used to generate pydoc HTML document for a serverNc|p|j}g}d}tjd}	|||}	|	sn|	\}
}|||||
|	\}}
}}}}|
r<||dd}|d|d|dn|r8d	t|z}|d|d||dn|r8d
t|z}|d|d||dn|||dzdkr,||	||||nD|r|d|zn)||	|||}||||d
d
|S)zMark up some plain text, given a context of symbols to look for.
        Each context dictionary maps object names to anchor names.rzS\b((http|https|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?((?:\w|\.)+))\brA"z&quot;z	<a href="z">z</a>z(https://www.rfc-editor.org/rfc/rfc%d.txtz!https://peps.python.org/pep-%04d/(zself.<strong>%s</strong>Nr_)escaperrsearchspanrfgroupsreplacernamelinkr)r-textrr'classesrYrhherepatternr~startendallschemerfcpepselfdotr2urls                   rmarkupzServerHTMLDoc.markups6&4;*<==	NN4..E%JE3NN66$tEz"23344438<<>>0Cc7D
=fSkk))#x88SSSABBBB
=@3s88KVVC[[[[IJJJJ
=9CHHDVVC[[[[IJJJJc#a%iC''t}}T7E7KKLLLL
=9D@AAAAt}}T7;;<<<D-	.	vvd455k**+++wwwrc|r|jpddz|z}d}	d||d||d}
t|rtt	|}nd}t|tr|dp|}|dpd}ntj|}|
|z|	o|	d	|	zz}
|
||j|||}|od
|z}d|
d|d
S)z;Produce HTML documentation for a function or method object.r_rz	<a name="z
"><strong>z
</strong></a>z(...)rrAz'<font face="helvetica, arial">%s</font>z<dd><tt>%s</tt></dd>z<dl><dt>z</dt>z</dl>
)r4rrrr

isinstancetupler`ragreyr	preformat)r-objectr2modr'rrYclanchornotetitleargspec	docstringdecldocs               r
docroutinezServerHTMLDoc.docroutines>$*c1D8
KKT!2!2!2!24F	)F++,,GGGfe$$	-Qi*7Gq	RIIV,,Iw$#A49984?,A,ABkkt~ugw@@2,s2-1TT33377rci}|D]\}}d|z||<||||<||}d|z}||}|||j|}	|	od|	z}	|d|	zz}g}
t|}|D]0\}}|
||||1||ddd	|
z}|S)	z1Produce HTML documentation for an XML-RPC server.z#-z)<big><big><strong>%s</strong></big></big>z<tt>%s</tt>z
<p>%s</p>
)r'Methods	functionsr_)
itemsrheadingrrrXrfr
bigsectionr)r-server_namepackage_documentationrYfdictkeyvalueheadresultrcontentsmethod_itemss            r	docserverzServerHTMLDoc.docserver
s,!--//	&	&JCE#J :E%LLkk+..:[Hd##kk/GG)mc)-#--gmmoo..&	F	FJCOODOOE3eODDEEEE$//{BGGH$5$5777
rc(d}d|z}d|d|d|dS)zFormat an HTML page.rvz1<link rel="stylesheet" type="text/css" href="%s">zI<!DOCTYPE>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Python: z	</title>
z
</head><body>z</body></html>r[)r-rr)css_pathcss_links     rpagezServerHTMLDoc.page$s:?
	',eeXXXxxx
A	Ar)r4rprqrrrrr+r/r[rrrrs}AA"&b"b' ' ' ' R,0R8888:4AAAAArrc0eZdZdZdZdZdZdZdZdS)XMLRPCDocGeneratorzGenerates documentation for an XML-RPC server.

    This class is designed as mix-in and should not
    be constructed directly.
    c0d|_d|_d|_dS)NzXML-RPC Server DocumentationzGThis server exports the following methods through the XML-RPC protocol.)r"server_documentationserver_titler;s rr.zXMLRPCDocGenerator.__init__9s'9
	
!;rc||_dS)z8Set the HTML title of the generated server documentationN)r4)r-r4s  rset_server_titlez#XMLRPCDocGenerator.set_server_titleAs)rc||_dS)z7Set the name of the generated HTML server documentationN)r")r-r"s  rset_server_namez"XMLRPCDocGenerator.set_server_nameFs'rc||_dS)z3Set the documentation string for the entire server.N)r3)r-r3s  rset_server_documentationz+XMLRPCDocGenerator.set_server_documentationKs%9!!!rci}|D]}||jvr|j|}n|jddg}t|jdr|j||d<t|jdr|j||d<t
|}|dkr|}nAt|jds)	t|j|}n#t$r|}YnwxYw|}	|||<t}|
|j|j|}|
tj|j|S)agenerate_html_documentation() => html documentation for the server

        Generates HTML documentation for the server using introspection for
        installed functions and instances that do not implement the
        _dispatch method. Alternatively, instances can choose to implement
        the _get_method_argstring(method_name) method to provide the
        argument string used in the documentation and the
        _methodHelp(method_name) method to provide the help text used
        in the documentation.N_get_method_argstringrr^rArorF)r8r'r(rWr<r^rrrrr+r"r3r/htmlrr4)r-rYr\rNmethod_info
documenter
documentations       rgenerate_html_documentationz.XMLRPCDocGenerator.generate_html_documentationPs2244	*	*Kdj((K0*#Tl4=*ABBV%)]%H%H%U%UKN4=-88L%)]%>%>{%K%KKN#K00,..(FF <<	)-!9$(M$/"&"&*---!,-)FF
$*GK  "__
",, $ 0 $ 9 '
t{4+<==}MMMs
C##C21C2N)	r4rprqrrr.r6r8r:rAr[rrr1r12sn;;;)))
'''
999
1N1N1N1N1Nrr1ceZdZdZdZdZdS)DocXMLRPCRequestHandlerzXML-RPC and documentation request handler class.

    Handles all HTTP POST requests and attempts to decode them as
    XML-RPC requests.

    Handles all HTTP GET requests and interprets them as requests
    for documentation.
    cFtjtjt}tj|ddd}t
|d5}|cdddS#1swxYwYdS)Nz..
pydoc_dataz
_pydoc.cssrb)mode)rrLdirnamerealpath__file__ropenr)r-r
	path_herer-fps     r_get_cssz DocXMLRPCRequestHandler._get_csssGOOBG$4$4X$>$>??	7<<	4|LL
(
&
&
&	"7799																		s5BBBc<|s|dS|jdrd}||j}n.d}|jd}|d|	dd|z|	d	tt|||j
|dS)
}Handles the HTTP GET request.

        Interpret all HTTP GET requests as requests for server
        documentation.
        Nz.cssztext/cssz	text/htmlr&rzContent-Typez%s; charset=UTF-8r)rrrLendswithrNrrArIrrrrrrr)r-content_typerOs   rdo_GETzDocXMLRPCRequestHandler.do_GETs	%%''	OOF9f%%	Q%L}}TY//HH&L{>>@@GGPPH3)<|)KLLL)3s8}}+=+=>>>
"""""rN)r4rprqrrrNrSr[rrrCrCs<#####rrCc&eZdZdZedddddfdZdS)DocXMLRPCServerzXML-RPC and HTML documentation server.

    Adds the ability to serve server documentation to the capabilities
    of SimpleXMLRPCServer.
    TFNc
|t||||||||t|dSr)rr.r1rs        rr.zDocXMLRPCServer.__init__sK	##D$$.:K$5	7	7	7	##D)))))r)r4rprqrrrCr.r[rrrUrUsD-D!ed#'5******rrUceZdZdZdZdZdS)DocCGIXMLRPCRequestHandlerzJHandler for XML-RPC data and documentation requests passed through
    CGIc|d}tdtdt|zttjtjj|tjjdS)rPr&zContent-Type: text/htmlrN)	rArIrrrrrrrrs  rrz%DocCGIXMLRPCRequestHandler.handle_gets3355<<WEE
'(((
"S]]2333


)))
!!!!!rcnt|t|dSr)rr.r1r;s rr.z#DocCGIXMLRPCRequestHandler.__init__s0((...##D)))))rN)r4rprqrrrr.r[rrrXrXs<""" *****rrX__main__c.eZdZdZGddZdS)ExampleServicecdS)N42r[r;s rgetDatazExampleService.getDatas4rc$eZdZedZdS)ExampleService.currentTimec>tjSr)datetimenowr[rrgetCurrentTimez)ExampleService.currentTime.getCurrentTimes(,,...rN)r4rprqstaticmethodrfr[rrcurrentTimerbs-

/
/\
/
/
/rrhN)r4rprqr`rhr[rrr]r]sK				/	/	/	/	/	/	/	/	/	/rr])	localhosti@c||zSrr[)xys  r<lambda>rms
QqSradd)rz&Serving XML-RPC on localhost port 8000zKIt is advisable to run this example server within a secure, closed network.z&
Keyboard interrupt received, exiting.)T)1rr
xmlrpc.clientrrrrrhttp.serverr	functoolsr	inspectr
r=rrrrrr`rfcntlImportErrorrr!r#rtrrrrHTMLDocrr1rCrUrXr4rdr]rr3powr0r?r
serve_foreverKeyboardInterruptexitr[rr<module>rzseeTHGGGGGGGGGGGGG......



								LLLLEEE0444IAIAIAIAIAIAIAIAVPAPAPAPAPA!7PAPAPAdWWWWW//WWW8%%%%%.%%%N?-?-?-?-?-4?-?-?-JoAoAoAoAoAEMoAoAoAbONONONONONONONONb&#&#&#&#&#8&#&#&#P********** *****$;$6***4zOOO////////
	/	0	0F  %%%  %888  !1!1d KKK++---
6777
[\\\	  """" 			E;<<<CHQKKKKK	sIA		AAA6G
F"!G" GGGGGG