config root man

Current Path : /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 : //usr/local/lib/python2.5/DocXMLRPCServer.pyc

³ò
h”Rc@s>dZddkZddkZddkZddkZddklZlZlZlZdei	fd„ƒYZ
ddd„ƒYZdefd	„ƒYZd
eefd„ƒYZ
deefd
„ƒYZedjoad„Ze
dƒZeidƒeidƒeidƒeieƒeiƒeiƒndS(sKSelf documenting XML-RPC Server.

This module 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.

This module is built upon the pydoc and SimpleXMLRPCServer
modules.
iÿÿÿÿN(tSimpleXMLRPCServertSimpleXMLRPCRequestHandlertCGIXMLRPCRequestHandlertresolve_dotted_attributet
ServerHTMLDoccBsGeZdZdhhhd„Zddhhhdd„Zd„ZRS(s7Class used to generate pydoc HTML document for a servercCsÝ|p|i}g}d}tidƒ}x‹|i||ƒ}	|	pPn|	iƒ\}
}|i||||
!ƒƒ|	iƒ\}}
}}}}|
o3||ƒiddƒ}|id||fƒná|o1dt|ƒ}|id|||ƒfƒn©|o1dt|ƒ}|id|||ƒfƒnq|||d!d	jo#|i|i	||||ƒƒn6|o|id
|ƒn|i|i	||ƒƒ|}q.|i|||ƒƒdi
|ƒS(sƒMark up some plain text, given a context of symbols to look for.
        Each context dictionary maps object names to anchor names.isM\b((http|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?((?:\w|\.)+))\bt"s&quot;s<a href="%s">%s</a>s'http://www.rfc-editor.org/rfc/rfc%d.txts(http://www.python.org/peps/pep-%04d.htmlit(sself.<strong>%s</strong>t(tescapetretcompiletsearchtspantappendtgroupstreplacetinttnamelinktjoin(tselfttextRtfuncstclassestmethodstresultstheretpatterntmatchtstarttendtalltschemetrfctpeptselfdottnameturl((s+/usr/local/lib/python2.5/DocXMLRPCServer.pytmarkups8!!#	cCs†|o
|ipdd|}d}	d||f}
ti|ƒoGti|iƒ\}}}
}ti|d||
|d|iƒ}nWti|ƒo@ti|ƒ\}}}
}ti|||
|d|iƒ}nd}t|t	ƒo&|dp|}|dpd}nt
i|ƒ}|
||	o|id|	ƒ}|i
||i|||ƒ}|od	|}d
||fS(s;Produce HTML documentation for a function or method object.Rt-s$<a name="%s"><strong>%s</strong></a>itformatvalues(...)is'<font face="helvetica, arial">%s</font>s<dd><tt>%s</tt></dd>s<dl><dt>%s</dt>%s</dl>
(t__name__tinspecttismethodt
getargspectim_funct
formatargspecR't
isfunctiont
isinstancettupletpydoctgetdoctgreyR%t	preformat(RtobjectR#tmodRRRtcltanchortnotettitletargstvarargstvarkwtdefaultstargspect	docstringtdecltdoc((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyt
docroutineCs4cCsh}x6|iƒD](\}}d|||<||||<qWd|}|i|ddƒ}|i||i|ƒ}	|	od|	}	|d|	}g}
|iƒ}|iƒx3|D]+\}}|
i|i||d|ƒƒq¸W||iddd	ti	|
ƒƒ}|S(
s1Produce HTML documentation for an XML-RPC server.s#-s)<big><big><strong>%s</strong></big></big>s#ffffffs#7799ees<tt>%s</tt>s
<p>%s</p>
RtMethodss#eeaa77(
titemstheadingR%R4tsortR
RCt
bigsectionR1R(Rtserver_nametpackage_documentationRtfdicttkeytvaluetheadtresultRBtcontentstmethod_items((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyt	docserverls&


#	N(R(t
__module__t__doc__tNoneR%RCRR(((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyRs
)(tXMLRPCDocGeneratorcBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s…Generates documentation for an XML-RPC server.

    This class is designed as mix-in and should not
    be constructed directly.
    cCsd|_d|_d|_dS(NsXML-RPC Server DocumentationsGThis server exports the following methods through the XML-RPC protocol.(RItserver_documentationtserver_title(R((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyt__init__Œs		cCs
||_dS(s8Set the HTML title of the generated server documentationN(RX(RRX((s+/usr/local/lib/python2.5/DocXMLRPCServer.pytset_server_title”scCs
||_dS(s7Set the name of the generated HTML server documentationN(RI(RRI((s+/usr/local/lib/python2.5/DocXMLRPCServer.pytset_server_name™scCs
||_dS(s3Set the documentation string for the entire server.N(RW(RRW((s+/usr/local/lib/python2.5/DocXMLRPCServer.pytset_server_documentationžscCsh}x?|iƒD]1}|ii|ƒo|i|}nþ|idj	oÜddg}t|idƒo|ii|ƒ|d<nt|idƒo|ii|ƒ|d<nt|ƒ}|djo
|}q:t|idƒp6yt	|i|ƒ}Wq%t
j
o
|}q%Xq:|}ndp
td‚|||<qWtƒ}|i
|i|i|ƒ}|i|i|ƒS(	sgenerate_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.t_get_method_argstringit_methodHelpit	_dispatchsACould not find method in self.functions and no instance installedN(NN(tsystem_listMethodsRthas_keytinstanceRUthasattrR]R^R0RtAttributeErrortAssertionErrorRRRRIRWtpageRX(RRtmethod_nametmethodtmethod_infot
documentert
documentation((s+/usr/local/lib/python2.5/DocXMLRPCServer.pytgenerate_html_documentation£s<




		(R(RSRTRYRZR[R\Rl(((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyRV…s				tDocXMLRPCRequestHandlercBseZdZd„ZRS(sèXML-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.
    cCs¢|iƒp|iƒdSn|iiƒ}|idƒ|iddƒ|idtt|ƒƒƒ|iƒ|i	i
|ƒ|i	iƒ|ii
dƒdS(s}Handles the HTTP GET request.

        Interpret all HTTP GET requests as requests for server
        documentation.
        NiÈsContent-types	text/htmlsContent-lengthi(tis_rpc_path_validt
report_404tserverRlt
send_responsetsend_headertstrtlentend_headerstwfiletwritetflusht
connectiontshutdown(Rtresponse((s+/usr/local/lib/python2.5/DocXMLRPCServer.pytdo_GETàs




(R(RSRTR|(((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyRmÖstDocXMLRPCServercBseZdZedd„ZRS(sŽXML-RPC and HTML documentation server.

    Adds the ability to serve server documentation to the capabilities
    of SimpleXMLRPCServer.
    icCs'ti||||ƒti|ƒdS(N(RRYRV(RtaddrtrequestHandlertlogRequests((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyRYþs(R(RSRTRmRY(((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyR}östDocCGIXMLRPCRequestHandlercBs eZdZd„Zd„ZRS(sJHandler for XML-RPC data and documentation requests passed through
    CGIcCs5|iƒ}dGHdt|ƒGHHtii|ƒdS(s}Handles the HTTP GET request.

        Interpret all HTTP GET requests as requests for server
        documentation.
        sContent-Type: text/htmlsContent-Length: %dN(RlRttsyststdoutRw(RR{((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyt
handle_gets
cCsti|ƒti|ƒdS(N(RRYRV(R((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyRYs
(R(RSRTR„RY(((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyRs	t__main__cCsddk}||idS(sadeg_to_rad(90) => 1.5707963267948966

        Converts an angle in degrees to an angle in radiansiÿÿÿÿNi´(tmathtpi(tdegR†((s+/usr/local/lib/python2.5/DocXMLRPCServer.pyt
deg_to_radst	localhosti@sMath ServersMath XML-RPC ServersÚThis server supports various mathematical functions.

You can use it from Python as follows:

>>> from xmlrpclib import ServerProxy
>>> s = ServerProxy("http://localhost:8000")
>>> s.deg_to_rad(90.0)
1.5707963267948966((RŠi@(RTR1R)R	R‚RRRRtHTMLDocRRVRmR}RR(R‰RpRZR[R\tregister_functiont register_introspection_functionst
serve_forever(((s+/usr/local/lib/python2.5/DocXMLRPCServer.pys<module>s,"nQ 
	





Man Man