| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/ |
Upload File : |
ó
ÿ–|_c @ sÙ d Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z d „ Z d e j
f d „ ƒ YZ d d d „ ƒ YZ d e f d
„ ƒ YZ
d e e f d „ ƒ YZ d
e e f d „ ƒ YZ d S( sK Self 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( t SimpleXMLRPCServert SimpleXMLRPCRequestHandlert CGIXMLRPCRequestHandlert resolve_dotted_attributec C s^ | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d ƒ } | j d d
ƒ } | S( Nt &s &t <s <t >s >t "s "s 's '( t replace( t s( ( s% /usr/lib/python2.7/DocXMLRPCServer.pyt _html_escape_quote s t
ServerHTMLDocc B sD e Z d Z d i i i d „ Z d i i i d d „ Z d „ Z RS( s7 Class used to generate pydoc HTML document for a serverc C sÐ | p | j } g } d } t j d ƒ } x| j | | ƒ } | sI Pn | j ƒ \ }
} | j | | | |
!ƒ ƒ | j ƒ \ } }
} } } } |
rË | | ƒ j d d ƒ } | j d | | f ƒ nØ | rd t | ƒ } | j d | | | ƒ f ƒ n¢ | r7d t | ƒ } | j d | | | ƒ f ƒ nl | | | d !d k rp| j | j | | | | ƒ ƒ n3 | rŠ| j d
| ƒ n | j | j | | ƒ ƒ | } q- | j | | | ƒ ƒ d j
| ƒ S( sƒ Mark up some plain text, given a context of symbols to look for.
Each context dictionary maps object names to anchor names.i sM \b((http|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?((?:\w|\.)+))\bR s "s <a href="%s">%s</a>s' http://www.rfc-editor.org/rfc/rfc%d.txts( http://www.python.org/dev/peps/pep-%04d/i t (s self.<strong>%s</strong>t ( t escapet ret compilet searcht spant appendt groupsR t intt namelinkt join( t selft textR t funcst classest methodst resultst heret patternt matcht startt endt allt schemet rfct pept selfdott namet url( ( s% /usr/lib/python2.7/DocXMLRPCServer.pyt markup$ s8 " c C sŒ | r | j p d d | } d } d | j | ƒ | j | ƒ f }
t j | ƒ rš t j | j ƒ \ } } }
} t j | d | |
| d | j ƒ} nT t j | ƒ rè t j | ƒ \ } } }
} t j | | |
| d | j ƒ} n d } t | t
ƒ r | d p
| } | d pd } n t j | ƒ } |
| | oL| j
d | ƒ } | j | | j | | | ƒ } | o{d | } d
| | f S( s; Produce HTML documentation for a function or method object.R
t -s$ <a name="%s"><strong>%s</strong></a>i t formatvalues (...)i s' <font face="helvetica, arial">%s</font>s <dd><tt>%s</tt></dd>s <dl><dt>%s</dt>%s</dl>
( t __name__R t inspectt ismethodt
getargspect im_funct
formatargspecR, t
isfunctiont
isinstancet tuplet pydoct getdoct greyR* t preformat( R t objectR( t modR R R t clt anchort notet titlet argst varargst varkwt defaultst argspect docstringt declt doc( ( s% /usr/lib/python2.7/DocXMLRPCServer.pyt
docroutineM s6 c C s i } x6 | j ƒ D]( \ } } d | | | <| | | | <q W| j | ƒ } d | } | j | d d ƒ } | j | | j | ƒ } | o’ d | } | d | } g }
t | j ƒ ƒ } x3 | D]+ \ } } |
j | j | | d | ƒƒ q W| | j d d d t j
|
ƒ ƒ } | S(
s1 Produce 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>
R t Methodss #eeaa77( t itemsR t headingR* R9 t sortedR RH t
bigsectionR6 R ( R t server_namet package_documentationR t fdictt keyt valuet headt resultRG t contentst method_items( ( s% /usr/lib/python2.7/DocXMLRPCServer.pyt docserverw s"